From 972be2df870406032ce13b297b83e75300f05511 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 27 Oct 2021 15:01:10 +0200 Subject: [PATCH] install_postfix_advanced.sh: change ownership on psotgrey socket directory. --- install_postfix_advanced.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/install_postfix_advanced.sh b/install_postfix_advanced.sh index cc52af0..7381d72 100755 --- a/install_postfix_advanced.sh +++ b/install_postfix_advanced.sh @@ -571,6 +571,25 @@ EOF fi fi + echononl " Set ownership on directory '${postgrey_socket_dir}'.." + chown -R postgrey:postgrey ${postgrey_socket_dir} 2> $tmp_err_msg + if [[ $? -eq 0 ]] ; then + echo_ok + else + echo_failed + error "$(cat $tmp_err_msg)" + + echononl "\tcontinue anyway [yes/no]: " + read OK + OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" + while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do + echononl "Wrong entry! - repeat [yes/nno]: " + read OK + done + [[ $OK = "yes" ]] || fatal "Abbruch durch User" + fi + + echononl " Enable Postgrey service at boot time.." if $systemd_exists ; then systemctl enable networking >/dev/null 2> $tmp_err_msg