From 4523c77858298f2aacffb80bfff1f233d6145a9c Mon Sep 17 00:00:00 2001 From: Coraledev <82213665+Coralesoft@users.noreply.github.com> Date: Sun, 14 Aug 2022 11:08:10 +1200 Subject: [PATCH] Update install-cloudflared.sh --- install-cloudflared.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install-cloudflared.sh b/install-cloudflared.sh index e7889c1..87e4e45 100644 --- a/install-cloudflared.sh +++ b/install-cloudflared.sh @@ -72,7 +72,7 @@ echo " " echo "#############################################################################" echo " " echo "Checking nano & wget-ssl are installed" -if ! [ -f "/usr/bin/nano" ] || ! [ -f "/usr/libexec/wget-ssl" ] || ! [ -f "/usr/bin/jq" ] +if ! [ -f "/usr/bin/nano" ] || ! [ -f "/usr/libexec/wget-ssl" ] || ! [ -f "/usr/bin/jq" ] || ! [ -f "/usr/bin/curl" ] then echo " " echo "Packages are missing, Updating packages" @@ -84,6 +84,13 @@ then opkg install nano echo " " fi + if ! [ -f "/usr/bin/curl" ] + then + echo " " + echo "Installing curl" + opkg install curl + echo " " + fi if ! [ -f "/usr/libexec/wget-ssl" ] then echo " "