Updated bootstrap to check and apply for updates
This commit is contained in:
parent
0041164c90
commit
13e4b7485b
|
@ -9,6 +9,20 @@ if [ ! -f /firstrun.pass ]; then
|
|||
echo "[...] Restarting server in detached mode..."
|
||||
else
|
||||
cd /CoffeeHousePy
|
||||
|
||||
echo "### Checking for updates ###"
|
||||
git remote update
|
||||
|
||||
UPSTREAM=${1:-'@{u}'}
|
||||
LOCAL=$(git rev-parse @)
|
||||
BASE=$(git merge-base @ "$UPSTREAM")
|
||||
|
||||
if [ $LOCAL = $BASE ]; then
|
||||
echo "### Applying update ###"
|
||||
git pull
|
||||
make clean install
|
||||
fi
|
||||
|
||||
echo "### Starting CoffeeHouse-LangDetect ###"
|
||||
make start_langdetect &
|
||||
echo "### Starting CoffeeHouse-SpamDetect ###"
|
||||
|
|
Loading…
Reference in New Issue