Browse Source

Changed curl to ${curlpath}

Marvin Lehmann 8 years ago
parent
commit
a4776e12c6

+ 1 - 1
lgsm/functions/alert_mailgun.sh

@@ -11,7 +11,7 @@ local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 fn_print_dots "Sending Email alert: Mailgun: ${email}"
 fn_print_dots "Sending Email alert: Mailgun: ${email}"
 sleep 0.5
 sleep 0.5
 
 
-mailgunsend=$(curl -s --user "api:${mailguntoken}" \
+mailgunsend=$(${curlpath} -s --user "api:${mailguntoken}" \
 -F from="LinuxGSM <${mailgunemailfrom}>" \
 -F from="LinuxGSM <${mailgunemailfrom}>" \
 -F to="LinuxGSM Admin <${mailgunemail}>" \
 -F to="LinuxGSM Admin <${mailgunemail}>" \
 -F subject="${alertemoji} ${alertsubject} ${alertemoji}" \
 -F subject="${alertemoji} ${alertsubject} ${alertemoji}" \

+ 1 - 1
lgsm/functions/info_distro.sh

@@ -136,5 +136,5 @@ fi
 
 
 # External IP address
 # External IP address
 if [ -z "${extip}" ];then
 if [ -z "${extip}" ];then
-	extip=$(curl -m 3 ifconfig.co 2>/dev/null)
+	extip=$(${curlpath} -m 3 ifconfig.co 2>/dev/null)
 fi
 fi

+ 1 - 1
lgsm/functions/update_factorio.sh

@@ -76,7 +76,7 @@ fn_update_factorio_arch(){
 
 
 fn_update_factorio_availablebuild(){
 fn_update_factorio_availablebuild(){
 	# Gets latest build info.
 	# Gets latest build info.
-	availablebuild=$(curl -s https://www.factorio.com/download-headless/"${branch}" | grep 'headless/linux64' | head -n 1 | grep -oP '(?<=get-download/).*?(?=/)')
+	availablebuild=$(${curlpath} -s https://www.factorio.com/download-headless/"${branch}" | grep 'headless/linux64' | head -n 1 | grep -oP '(?<=get-download/).*?(?=/)')
 	sleep 1
 	sleep 1
 
 
 	# Checks if availablebuild variable has been set
 	# Checks if availablebuild variable has been set