Skip to content

Commit 674b559

Browse files
author
Kristan Kenney
committed
Restart web server when adding mail/SSL for webmail support
1 parent 347f83a commit 674b559

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

bin/v-add-mail-domain

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,14 @@ if [ "$dkim" = 'yes' ]; then
146146
increase_user_value "$user" '$U_MAIL_DKIM'
147147
fi
148148

149+
# Restarting web server
150+
$BIN/v-restart-web $restart
151+
check_result $? "Web restart failed" >/dev/null
152+
153+
# Restarting proxy server
154+
$BIN/v-restart-proxy $restart
155+
check_result $? "Proxy restart failed" >/dev/null
156+
149157
# Logging
150158
log_history "added mail domain $domain"
151159
log_event "$OK" "$ARGUMENTS"

bin/v-add-mail-domain-ssl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,16 @@ update_object_value 'mail' 'DOMAIN' "$domain" '$SSL' "yes"
8686
# Restarting mail server
8787
$BIN/v-restart-mail $restart
8888
$BIN/v-restart-service $IMAP_SYSTEM $restart
89-
9089
check_result $? "Mail restart failed" >/dev/null
9190

91+
# Restarting web server
92+
$BIN/v-restart-web $restart
93+
check_result $? "Web restart failed" >/dev/null
94+
95+
# Restarting proxy server
96+
$BIN/v-restart-proxy $restart
97+
check_result $? "Proxy restart failed" >/dev/null
98+
9299
# Logging
93100
log_history "enabled mail ssl support for $domain"
94101
log_event "$OK" "$ARGUMENTS"

0 commit comments

Comments
 (0)