Initialize Clash Web source and deployment documentation

This commit is contained in:
lhc committed 2026-10-05 17:32:00 +08:00
commit 8e0fa00a73
66 files changed
+8532

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -eu
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
if [ "$#" -ne 1 ]; then
echo 'Usage: clashweb-control start|stop|restart' >&2
exit 2
fi
case "$1" in
start|stop|restart) exec /usr/bin/systemctl --no-pager "$1" clashweb-mihomo.service ;;
*) echo 'Unsupported action' >&2; exit 2 ;;
esac