update readme examples

This commit is contained in:
Nick Sweeting 2020-07-28 06:00:52 -04:00
parent b1082cfbaa
commit d7fc161ac7
2 changed files with 3 additions and 2 deletions

View file

@ -11,10 +11,10 @@ GRID=$(stat --format="%g" "$DATA_DIR")
# If user is not root, modify the archivebox user+files to have the same uid,gid
if [[ "$USID" != 0 && "$GRID" != 0 ]]; then
chown "$USID":"$GRID" "$DATA_DIR"
usermod -u "$USID" "$ARCHIVEBOX_USER"
groupmod -g "$GRID" "$ARCHIVEBOX_USER"
chown -R "$USID":"$GRID" "/home/$ARCHIVEBOX_USER"
chown "$USID":"$GRID" "$DATA_DIR" "$DATA_DIR/*"
fi
# run django as the new archivebox user