diff --git a/install.sh b/install.sh index 03ac3ea..a773434 100644 --- a/install.sh +++ b/install.sh @@ -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