Browse Source

Adjust config locations in web domain cleanup.

Raphael Schneeberger 7 years ago
parent
commit
47df6e8d32
1 changed files with 5 additions and 1 deletions
  1. 5 1
      func/domain.sh

+ 5 - 1
func/domain.sh

@@ -316,7 +316,11 @@ del_web_config() {
 
 
     # Clean up legacy configuration files
     # Clean up legacy configuration files
     if [ -e "$conf" ]; then
     if [ -e "$conf" ]; then
-        sed -i "\|$conf|d" /etc/$1/conf.d/hestia.conf
+        if [[ "$2" =~ stpl$ ]]; then
+            rm -f /etc/$WEB_SYSTEM/conf.d/domains/$domain.ssl.conf
+        else
+            rm -f /etc/$WEB_SYSTEM/conf.d/domains/$domain.conf
+        fi
         rm -f $conf
         rm -f $conf
     else
     else
         # fallback to old style configs
         # fallback to old style configs