Browse Source

Ensure SSL configuration is removed upon domain deletion

Kristan Kenney 7 years ago
parent
commit
f6013fee83
1 changed files with 2 additions and 0 deletions
  1. 2 0
      func/domain.sh

+ 2 - 0
func/domain.sh

@@ -309,6 +309,8 @@ del_web_config() {
     # Remove domain configuration files and clean up symbolic links
     # Remove domain configuration files and clean up symbolic links
     rm -f /etc/$WEB_SYSTEM/conf.d/domains/$domain.conf 
     rm -f /etc/$WEB_SYSTEM/conf.d/domains/$domain.conf 
     rm -f /etc/$PROXY_SYSTEM/conf.d/domains/$domain.conf 
     rm -f /etc/$PROXY_SYSTEM/conf.d/domains/$domain.conf 
+    rm -f /etc/$WEB_SYSTEM/conf.d/domains/$domain.ssl.conf 
+    rm -f /etc/$PROXY_SYSTEM/conf.d/domains/$domain.ssl.conf 
 
 
     # Clean up legacy configuration files
     # Clean up legacy configuration files
     if [ -e "$conf" ]; then
     if [ -e "$conf" ]; then