Initialize Clash Web source and deployment documentation
This commit is contained in:
commit
8e0fa00a73
66 files changed
+8532
No files matched your search
Executable
+11
@@ -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
|
||||
Reference in new issue
Block a user