Look for cyrus password in /root/passwords
Change the place to look for cyrus password: /root/passwords/cyrus_main_admin_password instead of /root/cyrus_main_admin_password
This commit is contained in:
parent
ead9997d68
commit
ea0213d482
|
@ -165,7 +165,7 @@ test_cyrus_admin ()
|
||||||
{
|
{
|
||||||
local -
|
local -
|
||||||
cyruser=$(grep -E "^[[:blank:]]*admins:" /etc/imapd.conf | cut -d ':' -f 2- | sed -r "s/[[:alnum:]]+@[[:alnum:].]+//g" | tr -d ' ')
|
cyruser=$(grep -E "^[[:blank:]]*admins:" /etc/imapd.conf | cut -d ':' -f 2- | sed -r "s/[[:alnum:]]+@[[:alnum:].]+//g" | tr -d ' ')
|
||||||
cyrpwd=$(cat /root/cyrus_main_admin_password)
|
cyrpwd=$(cat /root/passwords/cyrus_main_admin_password)
|
||||||
testsaslauthd -u $cyruser -p $cyrpwd > /dev/null || { echo "Error! Password for main cyrus admin has changed but has not been modified in /root/" >&2 && exit 1 ; }
|
testsaslauthd -u $cyruser -p $cyrpwd > /dev/null || { echo "Error! Password for main cyrus admin has changed but has not been modified in /root/" >&2 && exit 1 ; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue