mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
Added notify-app if/else block so can run on new staging and preview
This commit is contained in:
@@ -1,5 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Chown application to be owned by ubuntu"
|
|
||||||
cd /home/ubuntu/;
|
if [ -e "/home/notify-app" ]
|
||||||
chown -R ubuntu:ubuntu notifications-api
|
then
|
||||||
|
echo "Chown application to be owned by notify-app"
|
||||||
|
cd /home/notify-app/;
|
||||||
|
chown -R notify-app:govuk-notify-applications notifications-api
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Chown application to be owned by ubuntu"
|
||||||
|
cd /home/ubuntu/;
|
||||||
|
chown -R ubuntu:ubuntu notifications-api
|
||||||
|
fi
|
||||||
@@ -1,4 +1,16 @@
|
|||||||
echo "Install dependencies"
|
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
|
||||||
Reference in New Issue
Block a user