1
0
Fork 0

also chown home dir

This commit is contained in:
Nick Sweeting 2020-07-20 22:25:01 -04:00 committed by GitHub
parent 63909f6176
commit 0795048622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ COMMAND="$@"
# e.g. ./manage.py runserver # e.g. ./manage.py runserver
chown "$USID":"$GRID" "$DATA_DIR" chown "$USID":"$GRID" "$DATA_DIR"
chown -R "$USID":"$GRID" "/home/$ARCHIVEBOX_USER"
usermod -u $USID $ARCHIVEBOX_USER usermod -u $USID $ARCHIVEBOX_USER
groupmod -g $GRID $ARCHIVEBOX_USER groupmod -g $GRID $ARCHIVEBOX_USER
gosu $ARCHIVEBOX_USER bash -c "$COMMAND" gosu $ARCHIVEBOX_USER bash -c "$COMMAND"