We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65d9b8d commit 389cd08Copy full SHA for 389cd08
cag.sh
@@ -126,7 +126,7 @@ then
126
127
# Only proceed if the backup was successful (i.e. the backup db exists).
128
# Source: https://linuxize.com/post/bash-check-if-file-exists/
129
- if test -f "~/temp/db.sqlite3.bak.gz"
+ if [ -e ~/temp/db.sqlite3.bak.gz ]
130
then
131
132
# The backup db exists, so proceed.
@@ -149,7 +149,7 @@ then
149
cd bco_api
150
151
# Create the virtual environment and activate it.
152
- virtualenv env
+ /home/beta_portal_user/.local/bin/virtualenv env
153
source env/bin/activate
154
155
# Install requirements.
@@ -200,7 +200,7 @@ then
200
chown beta_portal_user:nginx * -R
201
202
# Restart the service.
203
- systemctl restart beta_gunicorn
+ systemctl restart bco_api
204
205
else
206
0 commit comments