Update deb-flared-update.sh

This commit is contained in:
hxcde 2023-01-20 10:33:15 +01:00 committed by GitHub
parent c9dae03773
commit 0d4456ccb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ 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
echo "0 0 * * * sh /opt/flaredupdate.sh >/dev/null 2>&1" > mycron
crontab -l > mycron
echo "0 0 * * * sh /opt/flaredupdate.sh >/dev/null 2>&1" >> mycron
crontab mycron
rm mycron