mirror of https://github.com/MISP/misp-docker
Update run.sh
Do a git pull when it's not the first boot, to ensure we're working on the latest version
parent
c88358e9bf
commit
f90a3c493c
|
@ -6,14 +6,14 @@
|
||||||
# 2017/05/17 - Created
|
# 2017/05/17 - Created
|
||||||
# 2017/05/31 - Fixed small errors
|
# 2017/05/31 - Fixed small errors
|
||||||
# 2019/10/17 - Use built-in mysql docker DB creation and use std env names (dafal)
|
# 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
|
set -e
|
||||||
|
|
||||||
/usr/sbin/sshd
|
/usr/sbin/sshd
|
||||||
|
|
||||||
if [ -r /.firstboot.tmp ]; then
|
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)"
|
echo "(Details are logged in /tmp/install.log)"
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
@ -142,10 +142,9 @@ Don't forget:
|
||||||
|
|
||||||
__WELCOME__
|
__WELCOME__
|
||||||
rm -f /.firstboot.tmp
|
rm -f /.firstboot.tmp
|
||||||
fi
|
|
||||||
|
|
||||||
else
|
else
|
||||||
git pull /var/www/MISP
|
git pull /var/www/MISP
|
||||||
|
fi
|
||||||
|
|
||||||
# Make MISP live - this isn't ideal, as it means taking an instance
|
# 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
|
# non-live will make it live again if the container restarts. That seems
|
||||||
|
|
Loading…
Reference in New Issue