refactor(install): Integrate aiohttp auth server into installation

This commit is contained in:
Whispering Wind
2025-08-22 22:28:11 +03:30
committed by GitHub
parent 0306347189
commit 51e7a9bab7
2 changed files with 47 additions and 4 deletions

View File

@ -80,9 +80,20 @@ install_hysteria() {
exit 1
fi
chmod +x /etc/hysteria/core/scripts/hysteria2/user.sh
chmod +x /etc/hysteria/core/scripts/hysteria2/kick.py
if ! check_auth_server_service; then
echo "Setting up Hysteria auth server..."
setup_hysteria_auth_server
fi
if systemctl is-active --quiet hysteria-auth.service; then
echo -e "${cyan}Hysteria auth server${NC} has been successfully started."
else
echo -e "${red}Error:${NC} hysteria-auth.service is not active."
exit 1
fi
if ! check_scheduler_service; then
setup_hysteria_scheduler
fi