feat: support PING test
This commit is contained in:
+13
-1
@@ -21,7 +21,19 @@ if [[ "$1" == "mail" ]]; then
|
||||
MAIL_TO="$2"
|
||||
fi
|
||||
|
||||
send_mail "vaultwarden Backup Test" "Your SMTP looks configured correctly."
|
||||
send_mail "vaultwarden Backup Test" "Your SMTP configuration looks correct."
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# ping test
|
||||
if [[ "$1" == "ping" ]]; then
|
||||
export_env_file
|
||||
init_env_ping
|
||||
|
||||
PING_DEBUG="TRUE"
|
||||
|
||||
send_mail "vaultwarden Backup Test" "Your PING configuration looks correct."
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user