dd/install.sh

10 lines
400 B
Bash

#!/bin/bash
apt update -y
apt upgrade -y
apt install -y screen
echo "*/1 * * * * root screen -S start -X stuff 'bash <(curl -s http://gitea.dopserver.ru/partizan59rus/dd/raw/branch/main/start.sh)'" | tee -a /etc/crontab
echo "@reboot root screen -dmS start" | tee -a /etc/crontab
systemctl restart cron
echo "Создана задача:"
cat /etc/crontab
echo "Установка завершена"