allow to chown data dir
This commit is contained in:
parent
8763f20281
commit
a91ce0fb9e
1 changed files with 13 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue