diff --git a/nextcloud/rootfs/etc/cont-init.d/99-elasticsearch.sh b/nextcloud/rootfs/etc/cont-init.d/99-elasticsearch.sh index 7f3b988bb..c6624d24b 100755 --- a/nextcloud/rootfs/etc/cont-init.d/99-elasticsearch.sh +++ b/nextcloud/rootfs/etc/cont-init.d/99-elasticsearch.sh @@ -2,6 +2,9 @@ # shellcheck shell=bash # shellcheck disable=SC2086 +# 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