1
0
Fork 0
mirror of synced 2024-09-28 07:11:14 +12:00

fix chown errors

This commit is contained in:
Nick Sweeting 2020-07-28 07:57:26 -04:00
parent 4bab1c258e
commit ace9421b21

View file

@ -14,7 +14,8 @@ if [[ "$USID" != 0 && "$GRID" != 0 ]]; then
usermod -u "$USID" "$ARCHIVEBOX_USER" usermod -u "$USID" "$ARCHIVEBOX_USER"
groupmod -g "$GRID" "$ARCHIVEBOX_USER" groupmod -g "$GRID" "$ARCHIVEBOX_USER"
chown -R "$USID":"$GRID" "/home/$ARCHIVEBOX_USER" chown -R "$USID":"$GRID" "/home/$ARCHIVEBOX_USER"
chown "$USID":"$GRID" "$DATA_DIR" "$DATA_DIR/*" chown "$USID":"$GRID" "$DATA_DIR"
chown "$USID":"$GRID" "$DATA_DIR/*" || true
fi fi
# run django as the new archivebox user # run django as the new archivebox user