Last fixes for live system

This commit is contained in:
root 2018-05-06 14:37:14 +00:00
parent 3ecf0614af
commit d0612f3a67
2 changed files with 14 additions and 2 deletions

View File

@ -11,7 +11,6 @@ if [[ -e /data/ssl/fullchain1.pem ]] ; then
fi
/etc/init.d/apache2 start
tail -f /var/log/apache2/error.log &
export OER_SRC_DIR=/data/oer
export PLATFORM_PATH=/data/src
@ -58,4 +57,4 @@ fi
# hardening...
/bin/bash
tail -f /var/log/apache2/error.log

13
dev/update-git.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
(
cd /home/oer/icp/
git pull
OLD=$(docker ps|grep "kunkel/oer\b"|cut -d " " -f 1)
if [[ $OLD != "" ]] ; then
docker stop $OLD
fi
./dev/run-container-server.sh
) > /dev/null