From e4c218a7345b218ff72550c2283e04e7087fed19 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Sat, 7 Dec 2024 00:24:38 +0330 Subject: [PATCH] Added cli for fetch IP address --- core/scripts/hysteria2/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/scripts/hysteria2/install.sh b/core/scripts/hysteria2/install.sh index c527945..4cdc0c0 100644 --- a/core/scripts/hysteria2/install.sh +++ b/core/scripts/hysteria2/install.sh @@ -104,6 +104,8 @@ EOF (crontab -l ; echo "0 3 */3 * * /bin/bash -c 'source /etc/hysteria/hysteria2_venv/bin/activate && python3 /etc/hysteria/core/cli.py restart-hysteria2' >/dev/null 2>&1") | crontab - (crontab -l ; echo "0 */6 * * * /bin/bash -c 'source /etc/hysteria/hysteria2_venv/bin/activate && python3 /etc/hysteria/core/cli.py backup-hysteria' >/dev/null 2>&1") | crontab - (crontab -l ; echo "*/1 * * * * /etc/hysteria/core/scripts/hysteria2/kick.sh >/dev/null 2>&1") | crontab - + + python3 $CLI_PATH ip-address } if systemctl is-active --quiet hysteria-server.service; then