From 7a94721e6ac3a199da13dfd81eb2e614013f87ae Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 2 Aug 2022 18:56:00 +0200 Subject: [PATCH] Update 99-custom_scripts.sh --- .../rootfs/etc/cont-init.d/99-custom_scripts.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nextcloud/rootfs/etc/cont-init.d/99-custom_scripts.sh b/nextcloud/rootfs/etc/cont-init.d/99-custom_scripts.sh index 2cd29608f..688a8121f 100644 --- a/nextcloud/rootfs/etc/cont-init.d/99-custom_scripts.sh +++ b/nextcloud/rootfs/etc/cont-init.d/99-custom_scripts.sh @@ -1,7 +1,10 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash - -if [ -f /config/addons_config/nextcloud/*.sh ]; then -bashio::log.info "Scripts found in /config/addons_config/nextcloud, executing" -bash /config/addons_config/nextcloud/*.sh -fi + +for file in /config/addons_config/nextcloud/*.sh +do + if [ -e "$file" ]; then + bashio::log.info "Executing $file" + bash "$file" + fi +done