mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2026-01-27 04:30:34 +03:00
Merge pull request #1 from CodeRoK7/main
Add task to cron autoreboot service youtubeUnblock
This commit is contained in:
@@ -67,6 +67,15 @@ uci set dhcp.@domain[-1].name='openai.com'
|
|||||||
uci set dhcp.@domain[-1].ip='94.131.119.85'
|
uci set dhcp.@domain[-1].ip='94.131.119.85'
|
||||||
uci commit dhcp
|
uci commit dhcp
|
||||||
|
|
||||||
|
echo "Crod task add restart service yotubeUnblock..."
|
||||||
|
|
||||||
|
cronTask="0 4 * * * service youtubeUnblock restart"
|
||||||
|
str=$(grep -i "0 4 \* \* \* service youtubeUnblock restart" /etc/crontabs/root)
|
||||||
|
if [ -z "$str" ]
|
||||||
|
then
|
||||||
|
echo "$cronTask" >> /etc/crontabs/root
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Restart service..."
|
echo "Restart service..."
|
||||||
|
|
||||||
service youtubeUnblock restart
|
service youtubeUnblock restart
|
||||||
|
|||||||
Reference in New Issue
Block a user