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 # ######################################