summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRene Mayrhofer <rene@mayrhofer.eu.org>2007-11-02 23:40:09 +0000
committerRene Mayrhofer <rene@mayrhofer.eu.org>2007-11-02 23:40:09 +0000
commit7801be553c54565a545099a0263db55adee0ab0e (patch)
tree08db3e4d6a06b7f37525dccd4103b615278e0378
parent56e6be606231f8e8de4fb36ce5f8bbe717ec6d9a (diff)
downloadvyos-strongswan-7801be553c54565a545099a0263db55adee0ab0e.tar.gz
vyos-strongswan-7801be553c54565a545099a0263db55adee0ab0e.zip
- Yuck, fix syntax error.
-rw-r--r--debian/strongswan.postinst4
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!"