Delete folder backup

This commit is contained in:
CodeRoK7
2025-02-21 23:26:06 +05:00
committed by GitHub
parent 415b9f121f
commit 66f2fa6fa1

View File

@@ -1,6 +1,6 @@
#!/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_BACKUP="/root/backup"
config_files="dhcp
@@ -14,6 +14,8 @@ do
cp -f "$DIR_BACKUP/$file" "$DIR/$file"
done
rm -rf "$DIR_BACKUP"
echo "Restart service..."
service youtubeUnblock restart
@@ -23,7 +25,7 @@ service odhcpd restart
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"
rm -f "/etc/crontabs/temp"