From cea9693ba60db925111422a7a8d0a8b00b6f1027 Mon Sep 17 00:00:00 2001 From: partizan59rus Date: Thu, 17 Aug 2023 19:51:06 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20install.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 38d0bd8..27f9792 100644 --- a/install.sh +++ b/install.sh @@ -2,9 +2,15 @@ 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 +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 echo "Создана задача:" cat /etc/crontab -echo "Установка завершена" \ No newline at end of file +echo "Установка завершена" +#reboot \ No newline at end of file