From 44c9f8316c11cacfefffa72968a5c747846c77b1 Mon Sep 17 00:00:00 2001 From: Rick Bradshow Date: Thu, 7 Oct 2004 15:19:48 +0000 Subject: (Logical change 1.81) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@391 ce84e21b-d406-0410-9b95-82705330c041 --- tools/debian-build-cron.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tools/debian-build-cron.sh') diff --git a/tools/debian-build-cron.sh b/tools/debian-build-cron.sh index e69de29bb..055f5b547 100644 --- a/tools/debian-build-cron.sh +++ b/tools/debian-build-cron.sh @@ -0,0 +1,15 @@ +#!/bin/sh +if /root/bin/rsync-debian-repo ; then + mv /cluster/bcfg/images/debian-3.0/pkglist.xml /cluster/bcfg/images/debian-3.0/pkglist.xml.old; + if /root/bin/create-debian-pkglist.pl ; then + /etc/init.d/bcfgd restart + else + mv /cluster/bcfg/images/debian-3.0/pkglist.xml.old /cluster/bcfg/images/debian-3.0/pkglist.xml; + echo "there was a problem with creating the new pkglist.xml"; + exit 1; + fi +else + echo "repo not synced and bcfg not updates"; + exit 1; +fi +exit 0; -- cgit v1.2.3-1-g7c22