make manage.py accessible via ctl, install pandoractl
This commit is contained in:
parent
9c4728b997
commit
fa5cf7cf60
2 changed files with 29 additions and 5 deletions
|
|
@ -12,7 +12,7 @@ NGINX=${NGINX-local}
|
|||
BRANCH=${BRANCH-stable}
|
||||
|
||||
# add a pandora user
|
||||
echo Installing pandora with user: $PANDORA
|
||||
echo Installing pandora with user: $PANDORA branch: $BRANCH
|
||||
getent passwd $PANDORA > /dev/null 2>&1 || adduser --disabled-password --gecos "" $PANDORA
|
||||
|
||||
#
|
||||
|
|
@ -197,8 +197,9 @@ fi
|
|||
if [ "$NGINX" == "local" ]; then
|
||||
|
||||
cp "/srv/pandora/etc/nginx/pandora" "/etc/nginx/sites-available/pandora"
|
||||
rm -f /etc/nginx/sites-enabled/default
|
||||
rm -f /etc/nginx/sites-enabled/default /etc/nginx/sites-enabled/pandora
|
||||
ln -s ../sites-available/pandora /etc/nginx/sites-enabled/pandora
|
||||
ln -s /srv/pandora/ctl /usr/local/bin/pandoractl
|
||||
|
||||
read -r -d '' GZIP <<EOI
|
||||
gzip_static on;\\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue