install_postfixadmin.sh: change '$CONF['password_expiration']' to 'NO'.
This commit is contained in:
parent
cda7fb08da
commit
3f3ef95240
@ -2256,6 +2256,7 @@ fi
|
|||||||
## - $CONF['transport_default'] = 'lmtp:unix:private/dovecot-lmtp';
|
## - $CONF['transport_default'] = 'lmtp:unix:private/dovecot-lmtp';
|
||||||
## - $CONF['vacation'] = 'NO';
|
## - $CONF['vacation'] = 'NO';
|
||||||
## - $CONF['vacation_domain'] = '$AUTOREPLY_HOSTNAME';
|
## - $CONF['vacation_domain'] = '$AUTOREPLY_HOSTNAME';
|
||||||
|
## - $CONF['password_expiration'] = 'NO';
|
||||||
## -
|
## -
|
||||||
echononl "\tAdjust Postfix Admin's Configuration - Part 3"
|
echononl "\tAdjust Postfix Admin's Configuration - Part 3"
|
||||||
_failed=false
|
_failed=false
|
||||||
@ -2281,9 +2282,11 @@ cat <<EOF >> $pfa_conf_file 2> $log_file
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
perl -i -n -p -e "s#^(\s*\\\$CONF\['vacation'\]\s*=.*)#//!\1\n\\\$CONF['vacation'] = 'NO';#" \
|
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';#" \
|
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
|
if $_failed ; then
|
||||||
echo_failed
|
echo_failed
|
||||||
error "$(cat $log_file)"
|
error "$(cat $log_file)"
|
||||||
|
Loading…
Reference in New Issue
Block a user