From 71233935897af857826a2a88a0d26c26e8ef283f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 6 Sep 2023 13:52:00 +0200 Subject: [PATCH] Update 02-init_steps.sh --- nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh index f46619e7d..22e54f9d5 100755 --- a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh +++ b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh @@ -1,6 +1,9 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +# Runs only after initialization done +if [ ! -f /app/www/public/occ ]: then cp "$(basename "${BASH_SOURCE}")" /scripts/ && exit 0; fi + ###################################### # Make links between logs and docker # ######################################