summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmodules.d/slx-addons/hooks/s3-setup-addons.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules.d/slx-addons/hooks/s3-setup-addons.sh b/modules.d/slx-addons/hooks/s3-setup-addons.sh
index 5068d2c2..2dcb364c 100755
--- a/modules.d/slx-addons/hooks/s3-setup-addons.sh
+++ b/modules.d/slx-addons/hooks/s3-setup-addons.sh
@@ -51,7 +51,7 @@ setup_addon() {
local addon_dir="$1"
cd "$addon_dir" || return 1
if ! bash addon-required 2>&1 ; then
- echo "'$addon_dir/addon-required' missing or returned non-zero, skipping..."
+ echo "'./addon-required' missing or returned non-zero, skipping..."
return 1
fi
# purge addon-* files
@@ -87,9 +87,10 @@ setup_addon() {
active=()
for addon in "${NEWROOT}/opt/openslx/addons/"*; do
+ echo "Checking addon ${addon##*/}..."
if setup_addon "$addon"; then
- active+=("${addon#"${NEWROOT}/opt/openslx/addons/"}")
- echo "Activated '$addon' (@ $(date +%s))"
+ active+=( "${addon##*/}" )
+ echo "Activated '${addon##*/}'"
fi
done