Обновить install.sh

This commit is contained in:
partizan59rus 2023-08-17 18:52:35 +00:00
parent 86faab4b80
commit ea1b300f09
1 changed files with 3 additions and 2 deletions

View File

@ -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