diff options
author | Simon Rettberg | 2014-04-01 20:03:02 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-04-01 20:03:02 +0200 |
commit | ec19e50173e1b6bf5250002aa25a1f0bcefa7209 (patch) | |
tree | 1ed16ee9eccd957f4fe5a623ef03c9cf638f9c66 /remote/rootfs/rootfs-stage32 | |
parent | [rfs-stage32] stage4 target requires stage4 mount (not just wants) (diff) | |
download | tm-scripts-ec19e50173e1b6bf5250002aa25a1f0bcefa7209.tar.gz tm-scripts-ec19e50173e1b6bf5250002aa25a1f0bcefa7209.tar.xz tm-scripts-ec19e50173e1b6bf5250002aa25a1f0bcefa7209.zip |
[rfs-stage32] Fix logic in setup slx addons: Only check for empty addon list if called with no arguments
Diffstat (limited to 'remote/rootfs/rootfs-stage32')
-rwxr-xr-x | remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons | 2 |
1 files changed, 1 insertions, 1 deletions
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 |