From d3f4b04fa6ccc979cd18fe5d6786cb0a0b554c48 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 6 Sep 2023 13:53:13 +0200 Subject: [PATCH] Update 99-elasticsearch.sh --- nextcloud/rootfs/etc/cont-init.d/99-elasticsearch.sh | 3 +++ 1 file changed, 3 insertions(+) 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