Skip to content

Commit 2f99b08

Browse files
committed
version 0.22.0
1 parent b65d822 commit 2f99b08

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

mailctl

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DOCKER_COMPOSE="docker compose" # compose plugin
1111

1212
# --------------------------------------------------------------------
1313

14-
VER=0.21.0
14+
VER=0.22.0
1515

1616
set -ueo pipefail
1717

@@ -95,6 +95,10 @@ _getDMSVersion() {
9595
_container bash -c 'cat /VERSION 2>/dev/null || printf "%s" "$DMS_RELEASE"'
9696
}
9797

98+
_getDebianVersion() {
99+
_container bash -c 'cat /etc/debian_version'
100+
}
101+
98102
case "${1:-}" in
99103
status) # Show status
100104
if [ -n "$(docker ps -q --filter "name=^$CONTAINER$")" ]; then
@@ -227,6 +231,10 @@ case "${1:-}" in
227231
_container postconf "$@"
228232
;;
229233

234+
proce*) # Show container processes
235+
_container -it ps auxf
236+
;;
237+
230238
logs) # Show logs
231239
if [ "${2:-}" == "-f" ]; then
232240
docker logs -f "$CONTAINER"
@@ -253,7 +261,8 @@ case "${1:-}" in
253261
;;
254262

255263
version*) # Show versions
256-
printf "%-15s%s\n\n" "Mailserver:" "$(_getDMSVersion)"
264+
printf "%-15s%s\n" "Mailserver:" "$(_getDMSVersion)"
265+
printf "%-15s%s\n\n" "Debian:" "$(_getDebianVersion)"
257266
PACKAGES=("amavisd-new" "clamav" "dovecot-core" "fail2ban" "fetchmail" "getmail6" "rspamd" "opendkim" "opendmarc" "postfix" "spamassassin" "supervisor")
258267
for i in "${PACKAGES[@]}"; do
259268
printf "%-15s" "$i:"
@@ -285,6 +294,7 @@ case "${1:-}" in
285294
$APP fail2ban log Show fail2ban log
286295
$APP ports Show published ports
287296
$APP postconf Show postfix configuration
297+
$APP processes Show container processes
288298
$APP logs [-f] Show logs. Use -f to 'follow' the logs
289299
$APP login Run container shell
290300
$APP supervisor Interact with supervisorctl

0 commit comments

Comments
 (0)