compile as pandora user

This commit is contained in:
j 2013-05-07 16:40:45 +00:00
parent bb1c15e2c0
commit 3d6f15a271

View file

@ -16,7 +16,7 @@ script
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora) test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $USER:$USER /var/run/pandora) test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $USER:$USER /var/run/pandora)
cd $VENV/pandora cd $VENV/pandora
./manage.py compile_pyc /usr/bin/sudo -u $USER ./manage.py compile_pyc
exec /usr/bin/sudo -u $USER $VENV/bin/gunicorn_django \ exec /usr/bin/sudo -u $USER $VENV/bin/gunicorn_django \
--bind 127.0.0.1:2620 \ --bind 127.0.0.1:2620 \
--timeout 90 \ --timeout 90 \