install_postfixadmin.sh: add HTTP_USER to group dovecot.

This commit is contained in:
Christoph 2021-02-14 18:43:18 +01:00
parent 235216037e
commit 4f9caf69bf

View File

@ -2310,6 +2310,19 @@ else
echo_ok
fi
echononl "Add Apache User (${HTTP_USER}) to group 'dovecot'.."
if getent group dovecot 2> /dev/null | grep -q "\b${HTTP_USER}\b" > /dev/null 2>&1 ; then
echo_skipped
else
usermod -a -G dovecot $HTTP_USER > $log_file 2>&1
if [[ $? -eq 0 ]] ; then
echo_ok
else
echo_failed
error "$(cat $log_file)"
fi
fi
# - After finished, you must alos change the value of $CONF['configured']
# - to 'true'
@ -3267,7 +3280,16 @@ info "Browse to \033[1mhttp://${WEBSITE_NAME}/setup.php\033[m to create a 'setup
\t If this is a fresh new installation, you have also to ceate one (ore more)
\t superadmin account(s).
\t Instructions on how to do this are pointed out at the setup site.
\t Instructions on how to do this are pointed out at the setup site, maybe like this:
\t - Generate setup_password hash and set \033[1m$CONF['setup_password']\033[m
\t in file \033[1mconfig.local.php\033[m as printed out.
\t - Browse to \033[1mhttp://${WEBSITE_NAME}/setup.php\033[m once again to update
\t the database
\t Browse to \033[1mhttp://${WEBSITE_NAME}\033[m and login using an existent admin account
\t[ \033[33m\033[1mNotice\033[m ]: \033[1mScroll back to see if all seems to be fine!\033[m