diff options
author | Rick Bradshow <bradshaw@mcs.anl.gov> | 2004-10-07 15:19:48 +0000 |
---|---|---|
committer | Rick Bradshow <bradshaw@mcs.anl.gov> | 2004-10-07 15:19:48 +0000 |
commit | 44c9f8316c11cacfefffa72968a5c747846c77b1 (patch) | |
tree | 6bff6597bfd54134456e6fc199d1f16ed18dbb7d /tools/debian-build-cron.sh | |
parent | 09651621e385958d95d8e90912e4e60ec9da8381 (diff) | |
download | bcfg2-44c9f8316c11cacfefffa72968a5c747846c77b1.tar.gz bcfg2-44c9f8316c11cacfefffa72968a5c747846c77b1.tar.bz2 bcfg2-44c9f8316c11cacfefffa72968a5c747846c77b1.zip |
(Logical change 1.81)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@391 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'tools/debian-build-cron.sh')
-rw-r--r-- | tools/debian-build-cron.sh | 15 |
1 files changed, 15 insertions, 0 deletions
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; |