fixed updater

This commit is contained in:
djerom 2024-07-05 09:58:40 +05:00
parent a2f268c09a
commit 0b36087846
2 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,9 @@ wget https://git.infra.timal.kz/djerom/public/raw/branch/master/srv/traefik.yml
wget https://git.infra.timal.kz/djerom/public/raw/branch/master/srv/agent.yml
wget https://git.infra.timal.kz/djerom/public/raw/branch/master/srv/mysql.yml
# copy base env file
curl https://git.infra.timal.kz/djerom/public/raw/branch/master/srv/.env.example | sed 's/\r$//' > .env
# install updater
wget https://git.infra.timal.kz/djerom/public/raw/branch/master/srv/update.sh
echo "*/3 * * * * /srv/update.sh" >> /etc/crontabs/root
curl https://git.infra.timal.kz/djerom/public/raw/branch/master/srv/update.sh | sed 's/\r$//' > update.sh
echo "*/3 * * * * /srv/update.sh" | crontab -