From 0b3608784677da86089b261f962974a09321b6b8 Mon Sep 17 00:00:00 2001 From: djerom Date: Fri, 5 Jul 2024 09:58:40 +0500 Subject: [PATCH] fixed updater --- .env.example => srv/.env.example | 0 ubuntu/install-node.sh | 7 +++++-- 2 files changed, 5 insertions(+), 2 deletions(-) rename .env.example => srv/.env.example (100%) diff --git a/.env.example b/srv/.env.example similarity index 100% rename from .env.example rename to srv/.env.example diff --git a/ubuntu/install-node.sh b/ubuntu/install-node.sh index 9e03671..7b09693 100644 --- a/ubuntu/install-node.sh +++ b/ubuntu/install-node.sh @@ -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 \ No newline at end of file +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 - \ No newline at end of file