From 206e7c22244bdca8e6d2bb9de2c8830df05ec12d Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 10 Oct 2020 23:28:44 +0200 Subject: support overridable variable $FORCE --- postfix/postfix.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)? " -- cgit v1.2.3