mirror of
https://github.com//cppla/ServerStatus
synced 2026-03-23 06:09:48 +08:00
21 lines
351 B
Bash
21 lines
351 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
if [ "$#" -gt 0 ]; then
|
|
exec "$@"
|
|
fi
|
|
|
|
case "${CLIENT:-linux}" in
|
|
linux|client-linux|client-linux.py)
|
|
exec python3 /app/client-linux.py
|
|
;;
|
|
psutil|client-psutil|client-psutil.py)
|
|
exec python3 /app/client-psutil.py
|
|
;;
|
|
*)
|
|
echo "Unknown CLIENT='$CLIENT'. Use 'linux' or 'psutil'." >&2
|
|
exit 2
|
|
;;
|
|
esac
|
|
|