From: Jan Rękorajski Date: Wed, 1 Feb 2012 17:46:43 +0000 (+0000) Subject: - /bin/systemd_booted may not exist X-Git-Tag: auto/th/rpm-build-macros-1_639-2~1 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=511e19386e36bf20b7f8b999df911560d0896c5b;p=packages%2Frpm-pld-macros.git - /bin/systemd_booted may not exist Changed files: service_generator.sh -> 1.13 --- diff --git a/service_generator.sh b/service_generator.sh index e3acebb..39551a8 100644 --- a/service_generator.sh +++ b/service_generator.sh @@ -19,7 +19,7 @@ fi # common part service_body() { cat <<-EOF - if ! /bin/systemd_booted; then + if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then if [ -f /var/lock/subsys/$service ]; then EOF if [ "$noop" = 1 ]; then @@ -61,7 +61,7 @@ if [ "$check" = 1 ]; then echo 'else' # service restart was disabled, tell them to restart it cat <<-EOF - if ! /bin/systemd_booted; then + if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then if [ -f /var/lock/subsys/$service ]; then echo 'Run "/sbin/service $service restart" to restart $desc.' fi