diff options
author | crupest <crupest@outlook.com> | 2024-06-16 11:38:17 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-06-16 11:38:17 +0800 |
commit | 27396e14dfecbb073c845c6f08e2beb24bdf0a69 (patch) | |
tree | 2638a5a29bc021757914e82a5e838115c7cdff02 /tools | |
parent | 5ec368c4ccf2914fc91948d4027eeb34ac2f8481 (diff) | |
download | crupest-27396e14dfecbb073c845c6f08e2beb24bdf0a69.tar.gz crupest-27396e14dfecbb073c845c6f08e2beb24bdf0a69.tar.bz2 crupest-27396e14dfecbb073c845c6f08e2beb24bdf0a69.zip |
feat(tools/secret): add systemd and edit-proxy.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Crupest.V2ray/tools/crupest-v2ray.service | 8 | ||||
-rwxr-xr-x | tools/Crupest.V2ray/tools/edit-proxy | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tools/Crupest.V2ray/tools/crupest-v2ray.service b/tools/Crupest.V2ray/tools/crupest-v2ray.service new file mode 100644 index 0000000..afe840f --- /dev/null +++ b/tools/Crupest.V2ray/tools/crupest-v2ray.service @@ -0,0 +1,8 @@ +[Unit] +Description=crupest v2ray service + +[Service] +ExecStart=%h/.local/bin/Crupest.V2ray + +[Install] +WantedBy=default.target diff --git a/tools/Crupest.V2ray/tools/edit-proxy b/tools/Crupest.V2ray/tools/edit-proxy new file mode 100755 index 0000000..a492ea1 --- /dev/null +++ b/tools/Crupest.V2ray/tools/edit-proxy @@ -0,0 +1,12 @@ +#! /usr/bin/env bash + +set -e + +p="$HOME/codes/crupest/tools/Crupest.V2ray/publish/proxy.txt" + +if [[ ! -f "$p" ]]; then + echo "File $p does not exist!" + exit 1 +fi + +exec vim "$p" |