icp/dev/update-git.sh

16 lines
256 B
Bash
Raw Normal View History

2018-05-06 14:37:14 +00:00
#!/bin/bash
2018-05-06 14:39:37 +00:00
# copy this file to: /root/scripts/update-oer-git.sh regularly
2018-05-06 14:37:14 +00:00
(
cd /home/oer/icp/
2018-05-07 09:32:34 +00:00
git pull -q
2018-05-06 14:37:14 +00:00
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