From cfd29c458d53feae0d8aefeaac2ade09542f9502 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Thu, 15 May 2025 23:50:09 +0330 Subject: [PATCH] Add service status for scheduler Add a default user --- core/scripts/hysteria2/install.sh | 1 + core/scripts/services_status.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/core/scripts/hysteria2/install.sh b/core/scripts/hysteria2/install.sh index 9c61b4c..bea3751 100644 --- a/core/scripts/hysteria2/install.sh +++ b/core/scripts/hysteria2/install.sh @@ -99,6 +99,7 @@ else if systemctl is-active --quiet hysteria-server.service; then echo "Installation and configuration complete." + python3 $CLI_PATH add-user --username default --traffic-limit 30 --expiration-days 30 else echo -e "${red}Error:${NC} Hysteria2 service is not active. Please check the logs for more details." fi diff --git a/core/scripts/services_status.sh b/core/scripts/services_status.sh index f9b0679..a5cdbee 100644 --- a/core/scripts/services_status.sh +++ b/core/scripts/services_status.sh @@ -2,6 +2,7 @@ declare -a services=( "hysteria-server.service" + "hysteria-scheduler.service" "hysteria-webpanel.service" "hysteria-caddy.service" "hysteria-telegram-bot.service"