Browse files

Set a PYTHON_EGG_CACHE for www-data

This is necessary since its home directory is owned by root.
  • Loading branch information...
1 parent 6d6edc7 commit f6e43980610cc58ff42c18863dd5d613b59c7974 @priteau priteau committed Aug 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 plan/newuser/newuser.sh
View
2 plan/newuser/newuser.sh
@@ -14,4 +14,4 @@ su epu sh -c "source /home/epu/app-venv/bin/activate && ./test_add_user.py $PHAN
su epu sh -c "source /home/epu/app-venv/bin/activate && ./add_mysql_user.py $PHANTOM_USERNAME $PHANTOM_IAAS_ACCESS_KEY $PHANTOM_IAAS_SECRET_KEY /home/epu/phantom/phantomautoscale.yml"
cd /home/epu/phantomweb
-su www-data sh -c "./bin/phantomweb-new-user.py $PHANTOM_USERNAME $PHANTOM_USER_EMAIL $PHANTOM_IAAS_ACCESS_KEY $PHANTOM_IAAS_SECRET_KEY"
+su www-data sh -c "export PYTHON_EGG_CACHE=/tmp/python-eggs-www-data && ./bin/phantomweb-new-user.py $PHANTOM_USERNAME $PHANTOM_USER_EMAIL $PHANTOM_IAAS_ACCESS_KEY $PHANTOM_IAAS_SECRET_KEY"

0 comments on commit f6e4398

Please sign in to comment.