From 5792d1968ec0b8cfa187f6900889f01b7b1912ea Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 18 Oct 2013 14:07:19 +0200 Subject: [PATCH] MT#4517 Get rid of bashism in init script --- debian/mediator.init | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/mediator.init b/debian/mediator.init index a5a1872..a4c4a13 100755 --- a/debian/mediator.init +++ b/debian/mediator.init @@ -70,13 +70,13 @@ fi case "$1" in start) - echo -n "Starting $DESC: $NAME" + printf "Starting $DESC: $NAME" start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE \ - --exec $DAEMON -- $OPTIONS || echo -n " already running" + --exec $DAEMON -- $OPTIONS || printf " already running" log_end_msg $? ;; stop) - echo -n "Stopping $DESC: $NAME" + printf "Stopping $DESC: $NAME" start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ --exec $DAEMON if [ "$?" -ne 0 ]; then @@ -87,7 +87,7 @@ case "$1" in ;; restart|force-reload) - echo -n "Restarting $DESC: $NAME" + printf "Restarting $DESC: $NAME" start-stop-daemon --oknodo --stop --quiet --pidfile \ $PIDFILE --exec $DAEMON if [ "$?" -ne 0 ]; then