Skip to content

Commit eac319a

Browse files
committed
Improve notice before sed
1 parent 0957111 commit eac319a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

func/domain.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,10 @@ add_web_config() {
232232
fi
233233
fi
234234

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

742745
fi
743746

747+
# Note: Removing or renaming template variables will lead to broken custom templates.
748+
# -If possible custom templates should be automatically upgraded to use the new format
749+
# -Alternatively a depreciation period with proper notifications should be considered
750+
744751
cat $MAILTPL/$1/$2 | \
745752
sed -e "s|%ip%|$local_ip|g" \
746753
-e "s|%domain%|$WEBMAIL_ALIAS.$domain|g" \

0 commit comments

Comments
 (0)