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