Обновить install.sh
This commit is contained in:
parent
86faab4b80
commit
ea1b300f09
|
@ -1,8 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
apt update -y
|
apt update -y
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
#apt install -y postfix
|
apt install -y screen
|
||||||
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
|
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
|
systemctl restart cron
|
||||||
echo "Создана задача:"
|
echo "Создана задача:"
|
||||||
cat /etc/crontab
|
cat /etc/crontab
|
||||||
|
|
Loading…
Reference in New Issue