mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2026-01-01 06:08:46 +03:00
Delete add autorestart Zapret
This commit is contained in:
@@ -796,13 +796,13 @@ curl -f -o /dev/null -k --connect-to ::google.com -L -H "Host: mirror.gcr.io" --
|
|||||||
# Проверяем код выхода
|
# Проверяем код выхода
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
printf "\033[32;1mzapret well work...\033[0m\n"
|
printf "\033[32;1mzapret well work...\033[0m\n"
|
||||||
cronTask="0 4 * * * service zapret restart"
|
#cronTask="0 4 * * * service zapret restart"
|
||||||
str=$(grep -i "0 4 \* \* \* service zapret restart" /etc/crontabs/root)
|
#str=$(grep -i "0 4 \* \* \* service zapret restart" /etc/crontabs/root)
|
||||||
if [ -z "$str" ]
|
#if [ -z "$str" ]
|
||||||
then
|
#then
|
||||||
echo "Add cron task auto reboot service zapret..."
|
#echo "Add cron task auto reboot service zapret..."
|
||||||
echo "$cronTask" >> /etc/crontabs/root
|
#echo "$cronTask" >> /etc/crontabs/root
|
||||||
fi
|
#fi
|
||||||
str=$(grep -i "0 4 \* \* \* service youtubeUnblock restart" /etc/crontabs/root)
|
str=$(grep -i "0 4 \* \* \* service youtubeUnblock restart" /etc/crontabs/root)
|
||||||
if [ ! -z "$str" ]
|
if [ ! -z "$str" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user