From a6a2671bec6c262dbd56c91378dabfe8a2055323 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Mon, 30 Mar 2015 19:31:20 -0400 Subject: [PATCH] fixed urls in swapupdate.sh --- swapupdate.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/swapupdate.sh b/swapupdate.sh index b9c8b78..ab062c5 100644 --- a/swapupdate.sh +++ b/swapupdate.sh @@ -1,8 +1,8 @@ #!/bin/bash #this script is run via cron and checks for updates to swapwatch #unless the conf says not to -swapURL="http://DOMAIN.com/monitoring/swapwatch.sh" -swapupdateURL="http://DOMAIN.com/monitoring/swapupdate.sh" +swapURL="http://DOMAIN.com/swapwatch.sh" +swapupdateURL="http://DOMAIN.com/swapupdate.sh" APPDIR="/usr/local/sw/apps/swapwatch" TMPDIR="/usr/local/sw/temp" LOGDIR="/usr/local/sw/logs" @@ -10,14 +10,14 @@ LOGDIR="/usr/local/sw/logs" ################################################################################ #if we are allowed to update - + if [ $update = "yes" ] then #update swapwatch.sh wget -O "$TMPDIR/swapwatch.tmp" $swapURL #only overwrite if the dl worked if [ "$?" -eq 0 ] - then + then #just overwrite... probably with identical data. that's fine mv -f "$TMPDIR/swapwatch.tmp" "$APPDIR/swapwatch.sh" chmod +x "$APPDIR/swapwatch.sh"