[SCM] davmail packaging branch, master, updated. debian/4.3.0.2125-1-9-gfb5d2e2

Geert Stappers stappers at stappers.nl
Wed Jul 3 19:32:03 UTC 2013


The following commit has been merged in the master branch:
commit fb5d2e2f7006e37840b8aa624c9d16793ce3407f
Author: Geert Stappers <stappers at stappers.nl>
Date:   Wed Jul 3 21:22:24 2013 +0200

    debian/init: continue if ENABLE_DAEMON is true
    
    Due the semi colon was the exit allways executed
    
    $ true || echo a ; echo b
    b
    $ false || echo a ; echo b
    a
    b

diff --git a/debian/init b/debian/init
index dfd4f35..357ddd8 100755
--- a/debian/init
+++ b/debian/init
@@ -33,7 +33,13 @@ SCRIPTNAME=/etc/init.d/$NAME
 [ -r /etc/default/$NAME ] && . /etc/default/$NAME
 
 # Exit if daemon run by initscript is disabled
-[ "$ENABLE_DAEMON" = "true" ] || echo "Doing nothing, disabled via /etc/default/davmail"; exit 0
+if [ "$ENABLE_DAEMON" = "true" ]
+then
+    : # continue
+else
+    echo "Doing nothing, disabled via /etc/default/davmail"
+    exit 0
+fi
 
 DAEMON_ARGS="/etc/davmail.properties"
 

-- 
davmail packaging



More information about the pkg-java-commits mailing list