1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

Display and allow chaninging a comment/description for aliases. Change the default comment for required aliases to "Required alias".

This commit is contained in:
downtownallday
2020-08-25 12:00:55 -04:00
parent 2b981db1d9
commit 22bfef6f59
7 changed files with 85 additions and 30 deletions

View File

@@ -43,7 +43,8 @@ installed_state_capture() {
echo "Unable to get aliases: rc=$? err=$REST_ERROR" 1>&2
return 2
fi
echo "$REST_OUTPUT" > "$state_dir/aliases.json"
# ignore/exclude the alias description field
echo "$REST_OUTPUT" | grep -v '"description":' > "$state_dir/aliases.json"
# record dns config
H2 "record dns details"
@@ -84,7 +85,7 @@ installed_state_compare() {
H2 "Aliases"
output="$(diff "$s1/aliases.json" "$s2/aliases.json" 2>&1)"
if [ $? -ne 0 ]; then
change="true"
changed="true"
echo "ALIASES ARE DIFFERENT!"
echo "$output"
else