mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-08-09 06:31:23 +01:00
12 lines
185 B
Bash
Executable File
12 lines
185 B
Bash
Executable File
#!/bin/bash
|
|
|
|
OK=$(curl --silent "http://127.0.0.1:${NPM_ADMIN_PORT:-81}/api/" | jq --raw-output '.status')
|
|
|
|
if [ "$OK" == "OK" ]; then
|
|
echo "OK"
|
|
exit 0
|
|
else
|
|
echo "NOT OK"
|
|
exit 1
|
|
fi
|