mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2026-01-27 12:40:35 +03:00
Delete folder backup
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
URL_REPO="https://raw.githubusercontent.com/CodeRoK7/RouterichAX3000_configs"
|
URL="https://raw.githubusercontent.com/CodeRoK7/RouterichAX3000_configs/refs/heads/main"
|
||||||
DIR="/etc/config"
|
DIR="/etc/config"
|
||||||
DIR_BACKUP="/root/backup"
|
DIR_BACKUP="/root/backup"
|
||||||
config_files="dhcp
|
config_files="dhcp
|
||||||
@@ -14,6 +14,8 @@ do
|
|||||||
cp -f "$DIR_BACKUP/$file" "$DIR/$file"
|
cp -f "$DIR_BACKUP/$file" "$DIR/$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
rm -rf "$DIR_BACKUP"
|
||||||
|
|
||||||
echo "Restart service..."
|
echo "Restart service..."
|
||||||
|
|
||||||
service youtubeUnblock restart
|
service youtubeUnblock restart
|
||||||
@@ -23,7 +25,7 @@ service odhcpd restart
|
|||||||
|
|
||||||
echo "Remove cron task auto run script configure zaprets.."
|
echo "Remove cron task auto run script configure zaprets.."
|
||||||
|
|
||||||
grep -v "0 4 \* \* \* wget -O - $URL_REPO/refs/heads/main/configure_zaprets.sh | sh" /etc/crontabs/root > /etc/crontabs/temp
|
grep -v "0 4 \* \* \* wget -O - $URL/configure_zaprets.sh | sh" /etc/crontabs/root > /etc/crontabs/temp
|
||||||
cp -f "/etc/crontabs/temp" "/etc/crontabs/root"
|
cp -f "/etc/crontabs/temp" "/etc/crontabs/root"
|
||||||
rm -f "/etc/crontabs/temp"
|
rm -f "/etc/crontabs/temp"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user