mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2025-12-07 12:06:44 +03:00
Add variable URL_REPO
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/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="/etc/config"
|
||||||
DIR_BACKUP="/root/backup"
|
DIR_BACKUP="/root/backup"
|
||||||
config_files="dhcp
|
config_files="dhcp
|
||||||
@@ -107,8 +108,8 @@ then
|
|||||||
service firewall restart
|
service firewall restart
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cronTask="0 4 * * * wget -O - https://raw.githubusercontent.com/CodeRoK7/RouterichAX3000_configs/refs/heads/main/configure_zaprets.sh | sh"
|
cronTask="0 4 * * * wget -O - $URL_REPO/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)
|
str=$(grep -i "0 4 \* \* \* wget -O - $URL_REPO/refs/heads/main/configure_zaprets.sh | sh" /etc/crontabs/root)
|
||||||
if [ -z "$str" ]
|
if [ -z "$str" ]
|
||||||
then
|
then
|
||||||
echo "Add cron task auto run configure_zapret..."
|
echo "Add cron task auto run configure_zapret..."
|
||||||
|
|||||||
Reference in New Issue
Block a user