From 9a014b34b338bd570fd8a9c31a5fca6997b3f0b7 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 10 Mar 2023 17:57:22 +0100 Subject: [PATCH] Fix: Do chown also on restore Signed-off-by: Knut Ahlers --- docker-entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index f240578..7e42fcc 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -77,6 +77,8 @@ function run_restore() { info "Resetting to remote state..." git reset --hard FETCH_HEAD + + [[ -z $CHOWN_UID ]] || chown -R ${CHOWN_UID}:${CHOWN_GID} . } function run_sync() {