chore: Sync dovecot-master-user commands to use new style syntax (#2611)

Adopt the new colour vars from `helpers/log.sh` like the other supported commands have.
This commit is contained in:
Brennan Kinney 2022-06-05 12:05:33 +12:00 committed by GitHub
parent 5437b0e30b
commit 1bd8ef3976
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 18 deletions

View file

@ -9,24 +9,24 @@ DATABASE=/tmp/docker-mailserver/dovecot-masters.cf
function __usage function __usage
{ {
printf "\e[35mADDDOVECOTMASTERUSER\e[31m(\e[93m8\e[31m) printf '%s' "${PURPLE}ADDDOVECOTMASTERUSER${RED}(${YELLOW}8${RED})
\e[38;5;214mNAME\e[39m ${ORANGE}NAME${RESET}
addmasteruser - add a dovecot master user (for POP3/IMAP administration) addmasteruser - add a dovecot master user (for POP3/IMAP administration)
\e[38;5;214mSYNOPSIS\e[39m ${ORANGE}SYNOPSIS${RESET}
./setup.sh dovecot-master add <USERNAME> [<PASSWORD>] ./setup.sh dovecot-master add <USERNAME> [<PASSWORD>]
\e[38;5;214mOPTIONS\e[39m ${ORANGE}OPTIONS${RESET}
\e[94mGeneric Program Information\e[39m ${BLUE}Generic Program Information${RESET}
help Print the usage information. help Print the usage information.
\e[38;5;214mEXAMPLES\e[39m ${ORANGE}EXAMPLES${RESET}
\e[37m./setup.sh dovecot-master add test-user\e[39m ${LWHITE}./setup.sh dovecot-master add test-user${RESET}
Add the dovecot master account 'test-user'. You will be prompted Add the dovecot master account 'test-user'. You will be prompted
to input a password afterwards since no password was supplied. to input a password afterwards since no password was supplied.
\e[38;5;214mEXIT STATUS\e[39m ${ORANGE}EXIT STATUS${RESET}
Exit status is 0 if command was successful. If wrong arguments are provided Exit status is 0 if command was successful. If wrong arguments are provided
or arguments contain errors, the script will exit early with exit status 1. or arguments contain errors, the script will exit early with exit status 1.

View file

@ -12,29 +12,29 @@ DATABASE=/tmp/docker-mailserver/dovecot-masters.cf
function __usage function __usage
{ {
echo -e "\e[35mDELDOVECOTMASTERUSER\e[31m(\e[93m8\e[31m) printf '%s' "${PURPLE}DELDOVECOTMASTERUSER${RED}(${YELLOW}8${RED})
\e[38;5;214mNAME\e[39m ${ORANGE}NAME${RESET}
deldovecotmasteruser - delete a dovecot master user deldovecotmasteruser - delete a dovecot master user
\e[38;5;214mSYNOPSIS\e[39m ${ORANGE}SYNOPSIS${RESET}
./setup.sh dovecot-master del { <USERNAME> [<USERNAME>\e[31m...\e[39m] \e[31m|\e[39m help } ./setup.sh dovecot-master del [ OPTIONS ] { <MAIL ADDRESS> [<MAIL ADDRESS>${RED}...${RESET}] ${RED}|${RESET} help }
\e[38;5;214mDESCRIPTION\e[39m ${ORANGE}DESCRIPTION${RESET}
Delete a dovecot master user. Delete a dovecot master user.
\e[38;5;214mOPTIONS\e[39m ${ORANGE}OPTIONS${RESET}
-h -h
Show this help dialogue. Show this help dialogue.
\e[38;5;214mEXAMPLES\e[39m ${ORANGE}EXAMPLES${RESET}
\e[37m./setup.sh dovecot-master del administrator\e[39m ${LWHITE}./setup.sh dovecot-master del administrator${RESET}
Delete the dovecot master user called 'administrator'. Delete the dovecot master user called 'administrator'.
\e[37m./setup.sh dovecot-master del administrator admin\e[39m ${LWHITE}./setup.sh dovecot-master del administrator admin${RESET}
Delete dovecot master users 'administrator' and 'admin'. Delete dovecot master users 'administrator' and 'admin'.
\e[38;5;214mEXIT STATUS\e[39m ${ORANGE}EXIT STATUS${RESET}
Exit status is 0 if command was successful, and 1 if there was an error. Exit status is 0 if command was successful, and 1 if there was an error.
" "
} }