]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Adjusting starting.sh for dovecot
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 26 Jun 2025 11:19:20 +0000 (07:19 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 26 Jun 2025 11:19:20 +0000 (07:19 -0400)
support/starting.sh

index 9ecc187b406c1e6fefecad0b72ba2dec5f805ea9..74bc6cb1ef6852b8bbbd7c84002f3239cc254321 100755 (executable)
@@ -104,7 +104,6 @@ BEFMAIL=/etc/dovecot.conf.before.$APPNAME
 DOVMAIL=/etc/$APPNAME/dovecot/dovecot.conf
 
 if [ ! -f $BEFMAIL ] ; then
-  mv $DOVCONF $BEFMAIL
   ln -nsf $DOVMAIL $DOVCONF
   ln -nsf                                              \
        /etc/$APPNAME/dovecot/dovecot-2.0-auth-sql.conf \
@@ -113,6 +112,7 @@ if [ ! -f $BEFMAIL ] ; then
        /etc/$APPNAME/dovecot-2.0-auth-ldap.conf        \
        /etc/$APPNAME/dovecot-auth-ldap.conf
   cat  /etc/$APPNAME/dovecot/dovecot-auth.conf >> $DOVCONF
+  mv $DOVCONF $BEFMAIL
   fi
 }