mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2026-01-02 06:38:45 +03:00
Add cron task auto run configure_zaprets
This commit is contained in:
@@ -107,12 +107,11 @@ then
|
|||||||
service firewall restart
|
service firewall restart
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Crod task add restart service yotubeUnblock..."
|
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 * * * service youtubeUnblock restart"
|
|
||||||
str=$(grep -i "0 4 \* \* \* service youtubeUnblock restart" /etc/crontabs/root)
|
|
||||||
if [ -z "$str" ]
|
if [ -z "$str" ]
|
||||||
then
|
then
|
||||||
|
echo "Add cron task auto run configure_zapret..."
|
||||||
echo "$cronTask" >> /etc/crontabs/root
|
echo "$cronTask" >> /etc/crontabs/root
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user