summaryrefslogtreecommitdiffstats
path: root/tools/debian-build-cron.sh
blob: 055f5b5470830853ab812c897cc2340e8c6daee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;