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 | 351b977d4c5579b0377ba94fa5bab1be2a966e0a (patch) | |
| tree | 2638a5a29bc021757914e82a5e838115c7cdff02 /tools | |
| parent | 50efbac8635c7b919bfd2075fd15b01acccfa5e0 (diff) | |
| download | crupest-351b977d4c5579b0377ba94fa5bab1be2a966e0a.tar.gz crupest-351b977d4c5579b0377ba94fa5bab1be2a966e0a.tar.bz2 crupest-351b977d4c5579b0377ba94fa5bab1be2a966e0a.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" |
