|
|
@@ -231,7 +231,7 @@ add_web_config() {
|
|
|
|
|
|
if [[ "$2" =~ stpl$ ]]; then
|
|
|
rm -f /etc/$1/conf.d/domains/$domain.ssl.conf
|
|
|
- echo "include $conf;" > /etc/$1/conf.d/domains/$domain.ssl.conf
|
|
|
+ ln -s $conf /etc/$1/conf.d/domains/$domain.ssl.conf
|
|
|
|
|
|
# Clear old configurations
|
|
|
rm -rf $HOMEDIR/$user/conf/web/$domain.*
|
|
|
@@ -239,16 +239,12 @@ add_web_config() {
|
|
|
rm -rf $HOMEDIR/$user/conf/web/*nginx.$domain.*
|
|
|
else
|
|
|
rm -f /etc/$1/conf.d/domains/$domain.conf
|
|
|
- echo "include $conf;" > /etc/$1/conf.d/domains/$domain.conf
|
|
|
+ ln -s $conf /etc/$1/conf.d/domains/$domain.conf
|
|
|
|
|
|
# Clear old configurations
|
|
|
rm -rf $HOMEDIR/$user/conf/web/$domain.*
|
|
|
fi
|
|
|
-
|
|
|
- if [ "$1" != 'nginx' ]; then
|
|
|
- find /etc/$1/conf.d/domains -type f -name "$domain.*" | xargs sed -i "s/;//g"
|
|
|
- fi
|
|
|
-
|
|
|
+
|
|
|
trigger="${2/.*pl/.sh}"
|
|
|
if [ -x "$WEBTPL/$1/$WEB_BACKEND/$trigger" ]; then
|
|
|
$WEBTPL/$1/$WEB_BACKEND/$trigger \
|