From c08e417ba81f90d080421287ce22c16e814a8e03 Mon Sep 17 00:00:00 2001 From: Gabriele Pongelli Date: Mon, 30 Mar 2020 21:23:48 +0200 Subject: [PATCH] Removed crontab management, useless with ping-exit option --- openvpn/start.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/openvpn/start.sh b/openvpn/start.sh index a7db432d3..09c51d7ff 100755 --- a/openvpn/start.sh +++ b/openvpn/start.sh @@ -60,16 +60,6 @@ then # Update FreeVPN certs /etc/openvpn/updateFreeVPN.sh - - # Add daily update to cron - crontab -l > tempcron - - grep updateFreeVPN tempcron > /dev/null 2>&1 - if [[ $? == 1 ]]; then - echo "0 1 * * * /etc/openvpn/updateFreeVPN.sh" > tempcron - crontab tempcron - fi - rm tempcron elif [[ "${OPENVPN_PROVIDER^^}" = "VPNBOOK" ]] then pwd_url=$(curl -s "https://www.vpnbook.com/freevpn" | grep -m2 "Password:" | tail -n1 | cut -d \" -f2)