|
|
@@ -633,11 +633,12 @@ add_webmail_config() {
|
|
|
chmod 640 $conf
|
|
|
|
|
|
if [[ "$2" =~ stpl$ ]]; then
|
|
|
- rm -f /etc/$1/conf.d/domains/$WEBMAIL_ALIAS.$domain.ssl.conf
|
|
|
if [ ! -z "$WEB_SYSTEM" ]; then
|
|
|
+ rm -f /etc/$1/conf.d/domains/$WEBMAIL_ALIAS.$domain.ssl.conf
|
|
|
ln -s $conf /etc/$1/conf.d/domains/$WEBMAIL_ALIAS.$domain.ssl.conf
|
|
|
fi
|
|
|
if [ ! -z "$PROXY_SYSTEM" ]; then
|
|
|
+ rm -f /etc/$1/conf.d/domains/$WEBMAIL_ALIAS.$domain.ssl.conf
|
|
|
ln -s $conf /etc/$1/conf.d/domains/$WEBMAIL_ALIAS.$domain.ssl.conf
|
|
|
fi
|
|
|
|
|
|
@@ -646,11 +647,12 @@ add_webmail_config() {
|
|
|
rm -rf $HOMEDIR/$user/conf/mail/ssl.$domain.*
|
|
|
rm -rf $HOMEDIR/$user/conf/mail/*nginx.$domain.*
|
|
|
else
|
|
|
- rm -f /etc/$1/conf.d/domains/$WEBMAIL_ALIAS.$domain.conf
|
|
|
if [ ! -z "$WEB_SYSTEM" ]; then
|
|
|
+ rm -f /etc/$1/conf.d/domains/$WEBMAIL_ALIAS.$domain.conf
|
|
|
ln -s $conf /etc/$1/conf.d/domains/$WEBMAIL_ALIAS.$domain.conf
|
|
|
fi
|
|
|
if [ ! -z "$PROXY_SYSTEM" ]; then
|
|
|
+ rm -f /etc/$1/conf.d/domains/$WEBMAIL_ALIAS.$domain.conf
|
|
|
ln -s $conf /etc/$1/conf.d/domains/$WEBMAIL_ALIAS.$domain.conf
|
|
|
fi
|
|
|
|