File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,6 +97,10 @@ case "${1:-}" in
9797 fi
9898 ;;
9999
100+ config) # show configuration
101+ docker exec " $CONTAINER " cat /etc/dms-settings
102+ ;;
103+
100104 start) # Start container
101105 if [ -n " $( docker ps -q --filter " name=^$CONTAINER $" ) " ]; then
102106 echo " Container '$CONTAINER ' is already up."
@@ -170,7 +174,8 @@ case "${1:-}" in
170174 ;;
171175
172176 postc* ) # Show postfix configuration
173- docker exec " $CONTAINER " postconf
177+ shift
178+ docker exec " $CONTAINER " postconf " $@ "
174179 ;;
175180
176181 logs) # Show logs
@@ -216,6 +221,7 @@ case "${1:-}" in
216221 Usage:
217222
218223 $APP status Show status
224+ $APP config Show configuration
219225 $APP start Start container
220226 $APP stop Stop container
221227 $APP restart Restart container
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ _mailctl() {
22 local cur prev options
33 cur=${COMP_WORDS[COMP_CWORD]}
44 prev=${COMP_WORDS[COMP_CWORD-1]}
5- options=" status start stop restart setup queue flush view delete fail2ban ports postconf logs login supervisor update-check update-packages versions"
5+ options=" config delete fail2ban flush login logs ports postconf queue restart setup start status stop supervisor update-check update-packages versions view "
66 if [ $COMP_CWORD -eq 1 ]; then
77 COMPREPLY=( $( compgen -W " ${options[@]} " -- $cur ) )
88 elif [ $COMP_CWORD -eq 2 ]; then
You can’t perform that action at this time.
0 commit comments