1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-07-19 02:28:23 +00:00
vaultwarden/deployment/roles/keepalived/files/check_nginx.sh
2025-01-08 10:17:25 +01:00

7 lines
159 B
Bash

#!/bin/bash
STATUS_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://localhost)
if [ $STATUS_CODE -lt 200 ] || [ $STATUS_CODE -ge 400 ]; then
exit 1
fi