From 5b15c8e29e8a43b578c55756f7e53d1851b96b85 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 23 Nov 2020 00:59:50 -0500 Subject: [PATCH] silence usermod on start --- bin/docker_entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/docker_entrypoint.sh b/bin/docker_entrypoint.sh index c70d7f27..29fcb646 100755 --- a/bin/docker_entrypoint.sh +++ b/bin/docker_entrypoint.sh @@ -9,8 +9,8 @@ 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 - usermod -u "$USID" "$ARCHIVEBOX_USER" - groupmod -g "$GRID" "$ARCHIVEBOX_USER" + usermod -u "$USID" "$ARCHIVEBOX_USER" > /dev/null 2>&1 + groupmod -g "$GRID" "$ARCHIVEBOX_USER" > /dev/null 2>&1 chown -R "$USID":"$GRID" "/home/$ARCHIVEBOX_USER" chown "$USID":"$GRID" "$DATA_DIR" chown "$USID":"$GRID" "$DATA_DIR/*" > /dev/null 2>&1 || true