From ec19e50173e1b6bf5250002aa25a1f0bcefa7209 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 1 Apr 2014 20:03:02 +0200 Subject: [rfs-stage32] Fix logic in setup slx addons: Only check for empty addon list if called with no arguments --- .../rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'remote') diff --git a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons index e66e2e2c..13543e9e 100755 --- a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons +++ b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons @@ -17,7 +17,6 @@ # read global OpenSLX config . /opt/openslx/config || { echo "Could not source config!"; exit 23; } -[ -z "${SLX_ADDONS}" ] && { echo "No addons configured. Nothing to do :-)."; exit 0; } # source functions.inc for the download function . /opt/openslx/inc/functions || { echo "/opt/openslx/inc/functions not found!"; exit 1337; } @@ -43,6 +42,7 @@ mkdir -p "$DOWNLOAD_DEST" || { echo "Failed to create $DOWNLOAD_DEST"; exit 1; } # if [ $# -eq 0 ]; then + [ -z "${SLX_ADDONS}" ] && { echo "No addons configured. Nothing to do :-)."; exit 0; } for ADDON in ${SLX_ADDONS}; do systemctl start "setup-slx-addon@$ADDON" & done -- cgit v1.2.3-55-g7522