Add variable URL_REPO

This commit is contained in:
CodeRoK7
2025-02-21 22:11:45 +05:00
committed by GitHub
parent 1aa929cbf1
commit 0322865601

View File

@@ -1,6 +1,7 @@
#!/bin/sh
URL="https://raw.githubusercontent.com/CodeRoK7/RouterichAX3000_configs/refs/heads/main"
URL_REPO="https://raw.githubusercontent.com/CodeRoK7/RouterichAX3000_configs"
URL="$URL_REPO/refs/heads/main"
DIR="/etc/config"
DIR_BACKUP="/root/backup"
config_files="dhcp
@@ -107,8 +108,8 @@ then
service firewall restart
fi
cronTask="0 4 * * * wget -O - https://raw.githubusercontent.com/CodeRoK7/RouterichAX3000_configs/refs/heads/main/configure_zaprets.sh | sh"
str=$(grep -i "0 4 \* \* \* wget -O - https://raw.githubusercontent.com/CodeRoK7/RouterichAX3000_configs/refs/heads/main/configure_zaprets.sh | sh" /etc/crontabs/root)
cronTask="0 4 * * * wget -O - $URL_REPO/refs/heads/main/configure_zaprets.sh | sh"
str=$(grep -i "0 4 \* \* \* wget -O - $URL_REPO/refs/heads/main/configure_zaprets.sh | sh" /etc/crontabs/root)
if [ -z "$str" ]
then
echo "Add cron task auto run configure_zapret..."