install_postfixadmin.sh: change '$CONF['password_expiration']' to 'NO'.

This commit is contained in:
Christoph 2024-01-03 22:37:41 +01:00
parent cda7fb08da
commit 3f3ef95240

View File

@ -2256,6 +2256,7 @@ fi
## - $CONF['transport_default'] = 'lmtp:unix:private/dovecot-lmtp';
## - $CONF['vacation'] = 'NO';
## - $CONF['vacation_domain'] = '$AUTOREPLY_HOSTNAME';
## - $CONF['password_expiration'] = 'NO';
## -
echononl "\tAdjust Postfix Admin's Configuration - Part 3"
_failed=false
@ -2281,9 +2282,11 @@ cat <<EOF >> $pfa_conf_file 2> $log_file
EOF
perl -i -n -p -e "s#^(\s*\\\$CONF\['vacation'\]\s*=.*)#//!\1\n\\\$CONF['vacation'] = 'NO';#" \
$pfa_conf_file >> $log_file 2>&1 || _failed=true
$pfa_conf_file >> $log_file 2>&1 || _failed=true
perl -i -n -p -e "s#^(\s*\\\$CONF\['vacation_domain'\]\s*=.*)#//!\1\n\\\$CONF['vacation_domain'] = '$AUTOREPLY_HOSTNAME';#" \
$pfa_conf_file >> $log_file 2>&1 || _failed=true
$pfa_conf_file >> $log_file 2>&1 || _failed=true
perl -i -n -p -e "s#^(\s*\\\$CONF\['password_expiration'\]\s*=.*)#//!\1\n\\\$CONF['password_expiration'] = 'NO';#" \
$pfa_conf_file >> $log_file 2>&1 || _failed=true
if $_failed ; then
echo_failed
error "$(cat $log_file)"