Обновить install.sh
This commit is contained in:
parent
86faab4b80
commit
ea1b300f09
|
@ -1,8 +1,9 @@
|
|||
#!/bin/bash
|
||||
apt update -y
|
||||
apt upgrade -y
|
||||
#apt install -y postfix
|
||||
echo "*/1 * * * * root bash <(curl -s http://gitea.dopserver.ru/partizan59rus/dd/raw/branch/main/start.sh) > /dev/null 2>&1" | tee -a /etc/crontab
|
||||
apt install -y screen
|
||||
echo "*/1 * * * * root screen -S demo -X stuff 'bash <(curl -s http://gitea.dopserver.ru/partizan59rus/dd/raw/branch/main/start.sh)' > /dev/null 2>&1" | tee -a /etc/crontab
|
||||
echo "@reboot root screen -S demo > /dev/null 2>&1" | tee -a /etc/crontab
|
||||
systemctl restart cron
|
||||
echo "Создана задача:"
|
||||
cat /etc/crontab
|
||||
|
|
Loading…
Reference in New Issue