diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-10-10 23:28:44 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2020-10-10 23:28:44 +0200 |
commit | 206e7c22244bdca8e6d2bb9de2c8830df05ec12d (patch) | |
tree | 4a96a902e9b7782e1652b0d8b610ce0a95754dae | |
parent | 9f5b2eac010cde31569c9a92619d6979823ace2a (diff) |
support overridable variable $FORCE
-rwxr-xr-x | postfix/postfix.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh index 9b075cb..a82d746 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -29,6 +29,8 @@ exit1() { exit 1 } +FORCE=${FORCE:-} + REDPILL=${REDPILL:-REDPILL} REALM=${REALM:-ORG} @@ -441,7 +443,7 @@ _postconf -MX smtp-amavis/unix diff -ruNw "$confdir" "$tempdir" || if [ $? -gt 1 ]; then exit $?; else needs_reload=1; fi -if [ "$force" = "1" ]; then +if [ "1" = "$FORCE" ]; then do_update=y elif [ "1" = "$needs_reload" ]; then echo -n "Above is the intended changes. OK to update (y/N)? " |