use $USER

This commit is contained in:
j 2011-03-24 11:39:07 +01:00
parent 67b1dd5b82
commit 574210685e

View file

@ -15,7 +15,7 @@ env HOME=/home/pandora
script 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)
cd $VENV/pandora cd $VENV/pandora
exec /usr/bin/sudo -u pandora $VENV/bin/python $VENV/pandora/manage.py celeryd \ exec /usr/bin/sudo -u $USER $VENV/bin/python $VENV/pandora/manage.py celeryd \
-Q default \ -Q default \
-n pandora-default \ -n pandora-default \
-f /var/log/pandora/pandora-tasks.log \ -f /var/log/pandora/pandora-tasks.log \