From 66f2fa6fa19397aba836b6d07d82299406e67cea Mon Sep 17 00:00:00 2001 From: CodeRoK7 <58553260+CodeRoK7@users.noreply.github.com> Date: Fri, 21 Feb 2025 23:26:06 +0500 Subject: [PATCH] Delete folder backup --- off_configure_zaprets.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/off_configure_zaprets.sh b/off_configure_zaprets.sh index 66e7295..a4f5953 100644 --- a/off_configure_zaprets.sh +++ b/off_configure_zaprets.sh @@ -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"