From ace9421b21f0e683dbd042a098c26e4d0330d41e Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 28 Jul 2020 07:57:26 -0400 Subject: [PATCH] fix chown errors --- bin/docker_entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/docker_entrypoint.sh b/bin/docker_entrypoint.sh index a9491d32..eea71040 100755 --- a/bin/docker_entrypoint.sh +++ b/bin/docker_entrypoint.sh @@ -14,7 +14,8 @@ if [[ "$USID" != 0 && "$GRID" != 0 ]]; then usermod -u "$USID" "$ARCHIVEBOX_USER" groupmod -g "$GRID" "$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 # run django as the new archivebox user