Added cli for fetch IP address

This commit is contained in:
Whispering Wind
2024-12-07 00:24:38 +03:30
committed by GitHub
parent b703fd246f
commit e4c218a734

View File

@ -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