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