From f90a3c493c5d94f97deb698a31db88adc0791cc3 Mon Sep 17 00:00:00 2001 From: Steven Goossens Date: Sun, 5 Jul 2020 23:14:41 +0200 Subject: [PATCH] Update run.sh Do a git pull when it's not the first boot, to ensure we're working on the latest version --- web/run.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/run.sh b/web/run.sh index c0b9246..963e485 100755 --- a/web/run.sh +++ b/web/run.sh @@ -6,14 +6,14 @@ # 2017/05/17 - Created # 2017/05/31 - Fixed small errors # 2019/10/17 - Use built-in mysql docker DB creation and use std env names (dafal) -# +# 2020/07/05 - Update MISP when it's not the first start set -e /usr/sbin/sshd if [ -r /.firstboot.tmp ]; then - echo "Container started for the fist time. Setup might time a few minutes. Please wait..." + echo "Container started for the first time. Setup might time a few minutes. Please wait..." echo "(Details are logged in /tmp/install.log)" export DEBIAN_FRONTEND=noninteractive @@ -142,10 +142,9 @@ Don't forget: __WELCOME__ rm -f /.firstboot.tmp -fi - else git pull /var/www/MISP +fi # Make MISP live - this isn't ideal, as it means taking an instance # non-live will make it live again if the container restarts. That seems