Fix cron jobs
This commit is contained in:
@ -24,6 +24,9 @@ systemctl daemon-reload >/dev/null 2>&1
|
|||||||
echo "Removing cron jobs..."
|
echo "Removing cron jobs..."
|
||||||
(crontab -l | grep -v "python3 /etc/hysteria/core/cli.py traffic-status" | crontab -) >/dev/null 2>&1
|
(crontab -l | grep -v "python3 /etc/hysteria/core/cli.py traffic-status" | crontab -) >/dev/null 2>&1
|
||||||
(crontab -l | grep -v "/etc/hysteria/core/scripts/hysteria2/kick.sh" | crontab -) >/dev/null 2>&1
|
(crontab -l | grep -v "/etc/hysteria/core/scripts/hysteria2/kick.sh" | crontab -) >/dev/null 2>&1
|
||||||
|
(crontab -l | grep -v "python3 /etc/hysteria/core/cli.py restart-hysteria2" | crontab -) >/dev/null 2>&1
|
||||||
|
(crontab -l | grep -v "python3 /etc/hysteria/core/cli.py backup-hysteria" | crontab -) >/dev/null 2>&1
|
||||||
|
|
||||||
|
|
||||||
echo "Removing alias 'hys2' from .bashrc..."
|
echo "Removing alias 'hys2' from .bashrc..."
|
||||||
sed -i '/alias hys2=.*\/etc\/hysteria\/menu.sh/d' ~/.bashrc
|
sed -i '/alias hys2=.*\/etc\/hysteria\/menu.sh/d' ~/.bashrc
|
||||||
|
|||||||
Reference in New Issue
Block a user