From: Magnus Therning Date: Thu, 28 Oct 2010 15:48:07 +0000 (+0100) Subject: [CA-47550]: Move the echoing inside the if-statement to avoid X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=542d412a065377182a387af50d3ccaed28e8a5fb;p=xcp%2Fxen-api.git [CA-47550]: Move the echoing inside the if-statement to avoid confusion during boot. Signed-off-by: Magnus Therning --- diff --git a/scripts/init.d-genptoken b/scripts/init.d-genptoken index a60e3853..3912bdf4 100644 --- a/scripts/init.d-genptoken +++ b/scripts/init.d-genptoken @@ -8,14 +8,12 @@ . /etc/init.d/functions start() { - echo -n $"Creating pool secret (this may take some time)" - if [ ! -f /etc/xensource/ptoken ]; then + echo -n $"Creating pool secret (this may take some time)" /opt/xensource/libexec/genptoken -f -o /etc/xensource/ptoken + [ $? -eq 0 ] && success $"Done" || failure + echo fi - - [ $? -eq 0 ] && success $"Done" || failure - echo } case "$1" in