aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-06-16 11:38:17 +0800
committercrupest <crupest@outlook.com>2024-06-16 11:38:17 +0800
commit27396e14dfecbb073c845c6f08e2beb24bdf0a69 (patch)
tree2638a5a29bc021757914e82a5e838115c7cdff02 /tools
parent5ec368c4ccf2914fc91948d4027eeb34ac2f8481 (diff)
downloadcrupest-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.service8
-rwxr-xr-xtools/Crupest.V2ray/tools/edit-proxy12
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"