add crontab -e

У пользователя `root` по умолчанию нету файла crontab (`no crontab for root`), его надо создать перед тем как что то в него добавлять.
This commit is contained in:
2025-11-06 08:30:02 +00:00
parent 8584a83425
commit 3835219ad6

View File

@@ -22,4 +22,5 @@ runcmd:
- timedatectl set-timezone Europe/Moscow
- git -C /root clone https://git.tvstart.ru/ychernenko/RFB.git
- bash /root/RFB/deploy.sh
- crontab -e
- (crontab -l; echo "$(ip a | grep 10.10.35 | cut -d ' ' -f 6 | sed "s|/|.|g" | cut -d '.' -f 4) 3 * * * /sbin/shutdown -r now") | crontab -