From 4f9caf69bf7bb1cb6e8a23bc909efc814c0d0f31 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 14 Feb 2021 18:43:18 +0100 Subject: [PATCH] install_postfixadmin.sh: add HTTP_USER to group dovecot. --- install_postfixadmin.sh | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/install_postfixadmin.sh b/install_postfixadmin.sh index c4b0001..d229ae1 100755 --- a/install_postfixadmin.sh +++ b/install_postfixadmin.sh @@ -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