From 748f3b1fea165649d73c82b80d52c6564fdb0032 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 2 Aug 2022 18:50:21 +0200 Subject: [PATCH] Allow custom scripts https://github.com/alexbelgium/hassio-addons/issues/411 --- nextcloud/rootfs/etc/cont-init.d/99-custom_scripts.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 nextcloud/rootfs/etc/cont-init.d/99-custom_scripts.sh diff --git a/nextcloud/rootfs/etc/cont-init.d/99-custom_scripts.sh b/nextcloud/rootfs/etc/cont-init.d/99-custom_scripts.sh new file mode 100644 index 000000000..2cd29608f --- /dev/null +++ b/nextcloud/rootfs/etc/cont-init.d/99-custom_scripts.sh @@ -0,0 +1,7 @@ +#!/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