dd/install.sh

9 lines
333 B
Bash
Raw Normal View History

2023-08-17 21:24:26 +05:00
#!/bin/bash
2023-08-17 23:07:30 +05:00
apt update -y
apt upgrade -y
2023-08-17 23:35:46 +05:00
#apt install -y postfix
2023-08-17 23:34:18 +05:00
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
2023-08-17 23:20:54 +05:00
systemctl restart cron
2023-08-17 23:07:30 +05:00
echo "Создана задача:"
2023-08-17 23:30:52 +05:00
cat /etc/crontab
2023-08-17 22:54:58 +05:00
echo "Установка завершена"