summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Smoogen <smooge@redhat.com>2016-04-06 16:06:27 +0000
committerStephen Smoogen <smooge@redhat.com>2016-04-06 16:06:27 +0000
commitaa85fb75cfb948057f01d583302c07fbf45ba99b (patch)
treed606182733783fbfe2a053b0e243503942581e4b
parent9c5b0fdb6458c189855cdcf04e920b7742b4e859 (diff)
downloadansible-aa85fb75cfb948057f01d583302c07fbf45ba99b.tar.gz
ansible-aa85fb75cfb948057f01d583302c07fbf45ba99b.tar.xz
ansible-aa85fb75cfb948057f01d583302c07fbf45ba99b.zip
and we fix a one liner
-rwxr-xr-xfiles/download/sync-up-downloads.sh.ib017
1 files changed, 5 insertions, 2 deletions
diff --git a/files/download/sync-up-downloads.sh.ib01 b/files/download/sync-up-downloads.sh.ib01
index 361e7a379..fd248c810 100755
--- a/files/download/sync-up-downloads.sh.ib01
+++ b/files/download/sync-up-downloads.sh.ib01
@@ -32,7 +32,7 @@ fi
DELTA=`echo ${CURDATE}-${LASTRUN} | bc`
-/path/to/last-sync -d ${DELTA} -q
+${LAST_SYNC} -d ${DELTA} -q
if [ "$?" -eq "0" ]; then
# EPEL
@@ -42,6 +42,9 @@ else
logger -p local0.notice -t rsync_epel "No change found. Not syncing"
fi
+#######
+####### CODE REUSE ALERT. THIS NEEDS TO BE A SUBROUTINE YOU SILLY
+
## Do the FEDORA download if we have had a sync since the last update.
CURDATE=`date +%s`
if [[ -s ${DATE_FED} ]]; then
@@ -52,7 +55,7 @@ fi
DELTA=`echo ${CURDATE}-${LASTRUN} | bc`
-/path/to/last-sync -d ${DELTA} -q
+${LAST_SYNC} -d ${DELTA} -q
if [ "$?" -eq "0" ]; then
# Enchilada