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
{
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)
\e[38;5;214mSYNOPSIS\e[39m
${ORANGE}SYNOPSIS${RESET}
./setup.sh dovecot-master add <USERNAME> [<PASSWORD>]
\e[38;5;214mOPTIONS\e[39m
\e[94mGeneric Program Information\e[39m
${ORANGE}OPTIONS${RESET}
${BLUE}Generic Program Information${RESET}
help Print the usage information.
\e[38;5;214mEXAMPLES\e[39m
\e[37m./setup.sh dovecot-master add test-user\e[39m
${ORANGE}EXAMPLES${RESET}
${LWHITE}./setup.sh dovecot-master add test-user${RESET}
Add the dovecot master account 'test-user'. You will be prompted
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
or arguments contain errors, the script will exit early with exit status 1.