diff options
author | crupest <crupest@outlook.com> | 2024-06-16 11:38:17 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-07-21 22:29:05 +0800 |
commit | bb241f176557341187575c5d74049d4e358d7cd3 (patch) | |
tree | c47220bf6d1ebc012b628a8606d162cf53ae47e4 | |
parent | 50366a9d7030966e0ca59bdf5720f492bcaf22ce (diff) | |
download | crupest-bb241f176557341187575c5d74049d4e358d7cd3.tar.gz crupest-bb241f176557341187575c5d74049d4e358d7cd3.tar.bz2 crupest-bb241f176557341187575c5d74049d4e358d7cd3.zip |
feat(tools/secret): add script cru-edit-proxy and cru-log-proxy.
-rwxr-xr-x | tools/Crupest.V2ray/tools/cru-edit-proxy (renamed from tools/Crupest.V2ray/tools/edit-proxy) | 0 | ||||
-rwxr-xr-x | tools/Crupest.V2ray/tools/cru-log-proxy | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tools/Crupest.V2ray/tools/edit-proxy b/tools/Crupest.V2ray/tools/cru-edit-proxy index a492ea1..a492ea1 100755 --- a/tools/Crupest.V2ray/tools/edit-proxy +++ b/tools/Crupest.V2ray/tools/cru-edit-proxy diff --git a/tools/Crupest.V2ray/tools/cru-log-proxy b/tools/Crupest.V2ray/tools/cru-log-proxy new file mode 100755 index 0000000..98f1bef --- /dev/null +++ b/tools/Crupest.V2ray/tools/cru-log-proxy @@ -0,0 +1,10 @@ +#! /usr/bin/env bash + +set -e + +if [[ -e /proc ]]; then + # I don't believe your system is Linux but there is no /proc. + exec journalctl --user -u crupest-v2ray "$@" +else + echo "Not supported on systems other than Linux now." >&2 +fi |