diff options
-rw-r--r-- | debian/strongswan.postinst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/strongswan.postinst b/debian/strongswan.postinst index e2b4f6f66..7d670dd36 100644 --- a/debian/strongswan.postinst +++ b/debian/strongswan.postinst @@ -119,7 +119,7 @@ enable_daemon_start() { cp $CONF_FILE.tmp $CONF_FILE rm $CONF_FILE.tmp echo "done" - else [ ! -e $CONF_FILE ]; then + elif [ ! -e $CONF_FILE ]; then echo -e "\t${daemon}start=yes" > $CONF_FILE else echo "ERROR: unknown or nonexistant ${daemon}start= directive, please fix manually!" @@ -139,7 +139,7 @@ disable_daemon_start() { cp $CONF_FILE.tmp $CONF_FILE rm $CONF_FILE.tmp echo "done" - else [ ! -e $CONF_FILE ]; then + elif [ ! -e $CONF_FILE ]; then echo -e "\t${daemon}start=yes" > $CONF_FILE else echo "ERROR: unknown or nonexistant ${daemon}start= directive, please fix manually!" |