diff --git a/nextcloud/rootfs/etc/cont-init.d/99-ocr.sh b/nextcloud/rootfs/etc/cont-init.d/99-ocr.sh index d984beafe..4d8f3ce16 100755 --- a/nextcloud/rootfs/etc/cont-init.d/99-ocr.sh +++ b/nextcloud/rootfs/etc/cont-init.d/99-ocr.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 + # Only execute if installed if [ -f /notinstalled ]; then exit 0; fi