Added notify-app if/else block so can run on new staging and preview

This commit is contained in:
Martyn Inglis
2016-07-04 16:17:07 +01:00
parent ce9f2e808b
commit 0933c153ea
2 changed files with 27 additions and 6 deletions

View File

@@ -1,4 +1,16 @@
echo "Install dependencies"
cd /home/ubuntu/notifications-api;
pip3 install -r /home/ubuntu/notifications-api/requirements.txt
python3 db.py db upgrade
if [ -e "/home/notify-app" ]
then
echo "Depenencies for notify-app"
cd /home/ubuntu/notifications-api;
pip3 install -r /home/notify-app/notifications-api/requirements.txt
python3 db.py db upgrade
fi
else
echo "Depenencies for ubuntu"
cd /home/ubuntu/notifications-api;
pip3 install -r /home/ubuntu/notifications-api/requirements.txt
python3 db.py db upgrade
fi