Update 99-custom_scripts.sh

This commit is contained in:
Alexandre
2022-08-02 18:56:00 +02:00
committed by GitHub
parent 6b87e2baa8
commit 7a94721e6a

View File

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