Jaap Marcus пре 4 година
родитељ
комит
eac319abb9
1 измењених фајлова са 8 додато и 1 уклоњено
  1. 8 1
      func/domain.sh

+ 8 - 1
func/domain.sh

@@ -232,7 +232,10 @@ add_web_config() {
         fi
         fi
     fi
     fi
     
     
-    # Leave proxy_extentions as custom templates might depend on it
+    # Note: Removing or renaming template variables will lead to broken custom templates.
+    #   -If possible custom templates should be automatically upgraded to use the new format
+    #   -Alternatively a depreciation period with proper notifications should be considered 
+    
     cat "${WEBTPL_LOCATION}/$2" | \
     cat "${WEBTPL_LOCATION}/$2" | \
         sed -e "s|%ip%|$local_ip|g" \
         sed -e "s|%ip%|$local_ip|g" \
             -e "s|%domain%|$domain|g" \
             -e "s|%domain%|$domain|g" \
@@ -741,6 +744,10 @@ add_webmail_config() {
         
         
     fi
     fi
     
     
+    # Note: Removing or renaming template variables will lead to broken custom templates.
+    #   -If possible custom templates should be automatically upgraded to use the new format
+    #   -Alternatively a depreciation period with proper notifications should be considered 
+    
     cat $MAILTPL/$1/$2 | \
     cat $MAILTPL/$1/$2 | \
         sed -e "s|%ip%|$local_ip|g" \
         sed -e "s|%ip%|$local_ip|g" \
             -e "s|%domain%|$WEBMAIL_ALIAS.$domain|g" \
             -e "s|%domain%|$WEBMAIL_ALIAS.$domain|g" \