add auth service status
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
declare -a services=(
|
declare -a services=(
|
||||||
"hysteria-server.service"
|
"hysteria-server.service"
|
||||||
"hysteria-scheduler.service"
|
"hysteria-scheduler.service"
|
||||||
|
"hysteria-auth.service"
|
||||||
"hysteria-webpanel.service"
|
"hysteria-webpanel.service"
|
||||||
"hysteria-caddy.service"
|
"hysteria-caddy.service"
|
||||||
"hysteria-telegram-bot.service"
|
"hysteria-telegram-bot.service"
|
||||||
@ -22,8 +23,6 @@ for service in "${services[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Remove trailing comma and close JSON properly
|
|
||||||
status_json="${status_json%,}}"
|
status_json="${status_json%,}}"
|
||||||
|
|
||||||
# Format output as valid JSON
|
|
||||||
echo "$status_json" | jq -M .
|
echo "$status_json" | jq -M .
|
||||||
|
|||||||
Reference in New Issue
Block a user