Обновить install.sh
This commit is contained in:
parent
7816c0c36d
commit
782faa1972
14
install.sh
14
install.sh
|
@ -2,15 +2,13 @@
|
|||
apt update -y
|
||||
apt upgrade -y
|
||||
apt install -y screen
|
||||
rm /etc/crontab
|
||||
echo "SHELL=/bin/sh" | tee -a /etc/crontab
|
||||
echo "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" | tee -a /etc/crontab
|
||||
echo "@reboot root screen -dmS start" | tee -a /etc/crontab
|
||||
|
||||
echo '*/1 * * * * root screen -S start -X eval 'stuff "wget http://gitea.dopserver.ru/partizan59rus/dd/raw/branch/main/start.sh -O start.sh;chmod -R 777 start.sh;./start.sh"\015'' | tee -a /etc/crontab
|
||||
|
||||
systemctl restart cron
|
||||
clear
|
||||
cd /etc/crontab
|
||||
rm crontab
|
||||
wget http://gitea.dopserver.ru/partizan59rus/dd/raw/branch/main/crontab -O crontab
|
||||
echo "Создана задача:"
|
||||
echo "-----------------------"
|
||||
cat /etc/crontab
|
||||
echo "-----------------------"
|
||||
echo "Установка завершена"
|
||||
#reboot
|
Loading…
Reference in New Issue