Create debian-cloudflared-auto-update
This commit is contained in:
parent
cdd639e3e8
commit
99e75eaa57
8
debian-cloudflared-auto-update
Normal file
8
debian-cloudflared-auto-update
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
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
|
||||||
|
echo "0 0 * * * sh /opt/flaredupdate.sh >/dev/null 2>&1" > mycron
|
||||||
|
crontab mycron
|
||||||
|
rm mycron
|
Loading…
Reference in New Issue
Block a user