mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
46 lines
1.2 KiB
Bash
Executable file
46 lines
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# shellcheck source=../scripts/helpers/index.sh
|
|
source /usr/local/bin/helpers/index.sh
|
|
|
|
function _main
|
|
{
|
|
_require_n_parameters_or_print_usage 1 "${@}"
|
|
|
|
local MAIL_ACCOUNT="${1}"
|
|
shift
|
|
local PASSWD="${*}"
|
|
|
|
_manage_accounts_dovecotmaster_update "${MAIL_ACCOUNT}" "${PASSWD}"
|
|
}
|
|
|
|
function __usage
|
|
{
|
|
printf '%s' "${PURPLE}updatedovecotmasteruser${RED}(${YELLOW}8${RED})
|
|
|
|
${ORANGE}USAGE${RESET}
|
|
./setup.sh dovecot-master update <MASTER ACCOUNT> [<PASSWORD>]
|
|
|
|
${ORANGE}OPTIONS${RESET}
|
|
${BLUE}Generic Program Information${RESET}
|
|
help Print the usage information.
|
|
|
|
${ORANGE}DESCRIPTION${RESET}
|
|
Update the password for a dovecot-master account.
|
|
|
|
To avoid a password being logged in the command history of your shell,
|
|
you may omit it, you'll be prompted to input the password instead.
|
|
|
|
${ORANGE}EXAMPLES${RESET}
|
|
${LWHITE}./setup.sh dovecot-master update example-account${RESET}
|
|
You will be prompted to input a password afterwards since no password was supplied.
|
|
|
|
${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.
|
|
|
|
"
|
|
}
|
|
|
|
_main "${@}"
|