summaryrefslogtreecommitdiffstats
path: root/tools/debian-build-cron.sh
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2011-01-03 21:19:03 -0600
committerNarayan Desai <desai@mcs.anl.gov>2011-01-03 21:19:03 -0600
commit847f8dcef257d5aeb6a9f17df9eb087d63ffeead (patch)
tree996b56bad3d3956edf87bb90d2f0213ddd3745ab /tools/debian-build-cron.sh
parent1ae62017ffc2a0783567736573d72b7d16729770 (diff)
parentfe0f19652d6a93057a604eabef2e3ee983bac3eb (diff)
downloadbcfg2-847f8dcef257d5aeb6a9f17df9eb087d63ffeead.tar.gz
bcfg2-847f8dcef257d5aeb6a9f17df9eb087d63ffeead.tar.bz2
bcfg2-847f8dcef257d5aeb6a9f17df9eb087d63ffeead.zip
Merge branch 'master' of git.mcs.anl.gov:bcfg2
Diffstat (limited to 'tools/debian-build-cron.sh')
-rw-r--r--tools/debian-build-cron.sh33
1 files changed, 0 insertions, 33 deletions
diff --git a/tools/debian-build-cron.sh b/tools/debian-build-cron.sh
deleted file mode 100644
index c03111412..000000000
--- a/tools/debian-build-cron.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-# rsync all the repo stuff to keep it up to date
-# this pulls the debian repo from mirror.mcs.anl.gov if the currect sync is finished.
-# If it isn't finished it will just back off and try again when the script runs next time.
-
-if ! /root/bin/rsync-debian-repo ; then
- echo "repo not synced ";
-fi
-
-# now rebuild the local repo so that it will grab everything that was added today.
-if ! /root/bin/local-deb-repo-maker ; then
- echo "local repos are not up to date ";
-fi
-
-#make a back up of the current pkglist so we can diff later
-cp /disks/bcfg2/Pkgmgr/debian-sarge.xml /tmp/debian-sarge.xml.current
-
-if /root/bin/create-debian-pkglist.pl ; then
- diff /tmp/debian-sarge.xml.current /disks/bcfg2/Pkgmgr/debian-sarge.xml
- rm -f /tmp/debian-sarge.xml.current
-
- #this is mainly cause this dies from time to time.. so this is protection
- /etc/init.d/apt-proxy restart
-else
- echo "there was a problem with creating the new pkglist.xml";
- exit 1;
-fi
-
-#this was problem-matic so I found that it was more realiable to just make its
-#own cron job to restart every couple of days to reduce the memory consumption
-#restart the server.. shouldn't be needed but memory leaks make it needed.
-#/etc/init.d/bcfg2-server restart
-