updatescripts/deb-flared-update.sh

10 lines
415 B
Bash
Raw Normal View History

2023-01-20 10:22:34 +01:00
cd /opt/
touch flaredupdate.sh
echo "curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb" | tee -a flaredupdate.sh
echo "sudo dpkg -i cloudflared.deb" | tee -a flaredupdate.sh
echo "rm cloudflared.deb" | tee -a flaredupdate.sh
2023-01-20 10:33:15 +01:00
crontab -l > mycron
echo "0 0 * * * sh /opt/flaredupdate.sh >/dev/null 2>&1" >> mycron
2023-01-20 10:22:34 +01:00
crontab mycron
rm mycron