From 9c818db99cf283b0c3afbddab509aa29d141b941 Mon Sep 17 00:00:00 2001 From: Sarina Date: Mon, 22 Jul 2024 13:37:31 +0330 Subject: [PATCH] Add path.sh --- core/scripts/hysteria2/kick.sh | 4 +--- core/scripts/path.sh | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 core/scripts/path.sh diff --git a/core/scripts/hysteria2/kick.sh b/core/scripts/hysteria2/kick.sh index ea8a1f4..be6f3df 100644 --- a/core/scripts/hysteria2/kick.sh +++ b/core/scripts/hysteria2/kick.sh @@ -1,8 +1,6 @@ #!/bin/bash -USERS_FILE="/etc/hysteria/users.json" -TRAFFIC_FILE="/etc/hysteria/traffic_data.json" -CONFIG_FILE="/etc/hysteria/config.json" +source /etc/hysteria/core/scripts/path.sh kick_user() { local username=$1 diff --git a/core/scripts/path.sh b/core/scripts/path.sh new file mode 100644 index 0000000..d44a4b6 --- /dev/null +++ b/core/scripts/path.sh @@ -0,0 +1,4 @@ +CLI_PATH="/etc/hysteria/core/cli.py" +USERS_FILE="/etc/hysteria/users.json" +TRAFFIC_FILE="/etc/hysteria/traffic_data.json" +CONFIG_FILE="/etc/hysteria/config.json" \ No newline at end of file