From b68e88cabc9cbd644efd1fc92536c192a79c1daf Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Fri, 16 Aug 2024 20:48:20 +0330 Subject: [PATCH] Fix crontab --- core/scripts/hysteria2/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/scripts/hysteria2/install.sh b/core/scripts/hysteria2/install.sh index ced4082..cd78bcc 100644 --- a/core/scripts/hysteria2/install.sh +++ b/core/scripts/hysteria2/install.sh @@ -119,8 +119,8 @@ EOF chmod +x /etc/hysteria/core/scripts/hysteria2/kick.sh # Add the scripts to the crontab - (crontab -l ; echo "*/1 * * * * python3 /etc/hysteria/core/cli.py traffic-status >/dev/null 2>&1") | crontab - - (crontab -l ; echo "*/1 * * * * /etc/hysteria/core/scripts/hysteria2/kick.sh >/dev/null 2>&1") | crontab - + (crontab -l ; echo "*/1 * * * * /bin/bash -c 'source /etc/hysteria/hysteria2_venv/bin/activate && python3 /etc/hysteria/core/cli.py traffic-status' >/dev/null 2>&1") | crontab - + (crontab -l ; echo "*/1 * * * * /bin/bash -c 'source /etc/hysteria/hysteria2_venv/bin/activate && /etc/hysteria/core/scripts/hysteria2/kick.sh' >/dev/null 2>&1") | crontab - } if systemctl is-active --quiet hysteria-server.service; then