allow to chown data dir

This commit is contained in:
Laura Klünder 2016-12-23 11:05:02 +01:00
parent 8763f20281
commit a91ce0fb9e

View file

@ -53,7 +53,12 @@ if [ "$1" == "build" ]; then
echo "" echo ""
echo "### building graph..." echo "### building graph..."
exec python manage.py buildgraph python manage.py buildgraph
echo ""
echo "### chowning /data/…"
USER_ID=${LOCAL_USER_ID:-9001}
exec chown -R $USER_ID $DATA_DIR
fi fi
if [ "$1" == "load_build" ]; then if [ "$1" == "load_build" ]; then
@ -67,7 +72,13 @@ if [ "$1" == "load_build" ]; then
echo "" echo ""
echo "### building graph..." echo "### building graph..."
exec python manage.py buildgraph python manage.py buildgraph
echo ""
echo "### chowning /data/…"
USER_ID=${LOCAL_USER_ID:-9001}
exec chown -R $USER_ID $DATA_DIR
fi fi
if [ "$1" == "all" ]; then if [ "$1" == "all" ]; then