diff --git a/files/etc/init.d/nodepool b/files/etc/init.d/nodepool index e8929e4..716e31e 100644 --- a/files/etc/init.d/nodepool +++ b/files/etc/init.d/nodepool @@ -23,7 +23,10 @@ USER=nodepool DAEMON=$PREFIX/bin/nodepoold # Exit if the package is not installed -[ -x "$DAEMON" ] || (echo "$DAEMON: command not found" && exit 5) +if ! [ -x "$DAEMON" ]; then + echo "$DAEMON: command not found" + exit 5 +fi # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh diff --git a/files/etc/init.d/nodepool-builder b/files/etc/init.d/nodepool-builder index 9504dc2..3083959 100644 --- a/files/etc/init.d/nodepool-builder +++ b/files/etc/init.d/nodepool-builder @@ -23,7 +23,10 @@ USER=nodepool DAEMON=$PREFIX/bin/nodepool-builder # Exit if the package is not installed -[ -x "$DAEMON" ] || (echo "$DAEMON: command not found" && exit 5) +if ! [ -x "$DAEMON" ]; then + echo "$DAEMON: command not found" + exit 5 +fi # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh diff --git a/files/etc/init.d/nodepool-deleter b/files/etc/init.d/nodepool-deleter index 0cd3286..c7adff6 100644 --- a/files/etc/init.d/nodepool-deleter +++ b/files/etc/init.d/nodepool-deleter @@ -23,7 +23,10 @@ USER=nodepool DAEMON=$PREFIX/bin/nodepoold # Exit if the package is not installed -[ -x "$DAEMON" ] || (echo "$DAEMON: command not found" && exit 5) +if ! [ -x "$DAEMON" ]; then + echo "$DAEMON: command not found" + exit 5 +fi # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh diff --git a/files/etc/init.d/nodepool-launcher b/files/etc/init.d/nodepool-launcher index ea95423..2ef6a4a 100644 --- a/files/etc/init.d/nodepool-launcher +++ b/files/etc/init.d/nodepool-launcher @@ -23,7 +23,10 @@ USER=nodepool DAEMON=$PREFIX/bin/nodepoold # Exit if the package is not installed -[ -x "$DAEMON" ] || (echo "$DAEMON: command not found" && exit 5) +if ! [ -x "$DAEMON" ]; then + echo "$DAEMON: command not found" + exit 5 +fi # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh