From 5952f3f77472b136534ec5d6f5ecaa792b966c6c Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Wed, 4 Dec 2019 11:02:48 +0100 Subject: [PATCH] Using HTTPS instead of SSH to query Git repo so the SSH key is not needed. --- start_or_update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start_or_update.sh b/start_or_update.sh index 98e6159..ac7afad 100755 --- a/start_or_update.sh +++ b/start_or_update.sh @@ -7,8 +7,8 @@ sudo chown root. crontab debian.cnf sudo chmod 644 crontab # --force-recreate is used to recreate container when crontab file has changed unset VERSION_MYSQL VERSION_CRON -VERSION_MYSQL=$(git ls-remote ssh://git@git.scimetis.net:2222/yohan/docker-mysql.git| head -1 | cut -f 1|cut -c -10) \ -VERSION_CRON=$(git ls-remote ssh://git@git.scimetis.net:2222/yohan/docker-cron.git| head -1 | cut -f 1|cut -c -10) \ +VERSION_MYSQL=$(git ls-remote https://git.scimetis.net/yohan/docker-mysql.git| head -1 | cut -f 1|cut -c -10) \ +VERSION_CRON=$(git ls-remote https://git.scimetis.net/yohan/docker-cron.git| head -1 | cut -f 1|cut -c -10) \ sudo -E bash -c 'docker-compose up -d --force-recreate' # We cannot remove the secrets files or restarting the container would become impossible #rm -f crontab debian.cnf