|
@@ -47,6 +47,7 @@ if [ "$WEB_SYSTEM" = "apache2" ]; then
|
|
|
fi
|
|
fi
|
|
|
if [ -e "/etc/nginx/conf.d/webmail.inc" ]; then
|
|
if [ -e "/etc/nginx/conf.d/webmail.inc" ]; then
|
|
|
sed -i "s|location \/$OLD_ALIAS|location \/$NEW_ALIAS|gI" /etc/nginx/conf.d/webmail.inc
|
|
sed -i "s|location \/$OLD_ALIAS|location \/$NEW_ALIAS|gI" /etc/nginx/conf.d/webmail.inc
|
|
|
|
|
+ sed -i "s|location ~ ^\/$OLD_ALIAS|location ~ ^\/$NEW_ALIAS|gI" /etc/nginx/conf.d/webmail.inc
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
#----------------------------------------------------------#
|
|
#----------------------------------------------------------#
|