Update run.sh

Do a git pull when it's not the first boot, to ensure we're working on the latest version
Steven Goossens 2020-07-05 23:14:41 +02:00 committed by GitHub
parent c88358e9bf
commit f90a3c493c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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