diff --git a/setup.sh b/setup.sh index c588b0a2..cc59c576 100755 --- a/setup.sh +++ b/setup.sh @@ -196,7 +196,7 @@ function _usage Add the email account \e[37mtest@domain.tld\e[39m. You will be prompted to input a password afterwards since no password was supplied. - \e[37m./setup.sh config dkim size 2048 domain 'whoami.com,whoareyou.org'\e[39m + \e[37m./setup.sh config dkim keysize 2048 domain 'whoami.com,whoareyou.org'\e[39m Creates keys of length 2048 but in an LDAP setup where domains are not known to Postfix by default, so you need to provide them yourself in a comma-separated list. @@ -357,9 +357,9 @@ function _main ;; quota ) - shift ; case ${1:-} in - set ) shift ; _docker_image setquota "${@}" ;; - del ) shift ; _docker_image delquota "${@}" ;; + case ${2:-} in + set ) shift 2 ; _docker_image setquota "${@}" ;; + del ) shift 2 ; _docker_image delquota "${@}" ;; * ) _usage ;; esac ;; diff --git a/target/bin/open-dkim b/target/bin/open-dkim index d6ced878..caa9f893 100755 --- a/target/bin/open-dkim +++ b/target/bin/open-dkim @@ -28,15 +28,15 @@ function __usage domain Provide the domain(s) for which keys are to be generated. \e[38;5;214mEXAMPLES\e[39m - \e[37m./setup.sh config dkim size 2048\e[39m + \e[37m./setup.sh config dkim keysize 2048\e[39m Creates keys of length 2048 bit in a default setup where domains are obtained from your accounts. - \e[37m./setup.sh config dkim size 2048 selector 2021-dkim\e[39m + \e[37m./setup.sh config dkim keysize 2048 selector 2021-dkim\e[39m Creates keys of length 2048 bit in a default setup where domains are obtained from your accounts. The DKIM selector used is '2021-dkim'. - \e[37m./setup.sh config dkim size 2048 selector 2021-dkim domain 'whoami.com,whoareyou.org'\e[39m + \e[37m./setup.sh config dkim keysize 2048 selector 2021-dkim domain 'whoami.com,whoareyou.org'\e[39m Appropriate for an LDAP setup. Creates keys of length 2048 bit in a default setup where domains are obtained from your accounts. The DKIM selector used is '2021-dkim'. The domains for which DKIM keys are generated are 'whoami.com' and 'whoareyou.org'.