update script to create mklocalrepo.sh once the repository is created

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12283 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
arifali 2012-04-19 22:31:05 +00:00
parent 6ee305dd95
commit ecfadb5118

View File

@ -153,6 +153,14 @@ __EOF__
mv $xcat_core_path/latest_version $repo_xcat_core_path/xcat-core_latest-build
cat << '__EOF__' > $repo_xcat_core_path/mklocalrepo.sh
. /etc/lsb-release
cd `dirname $0`
echo deb file://"`pwd`" $DISTRIB_CODENAME main > /etc/apt/sources.list.d/xcat-core.list
__EOF__
chmod 775 $repo_xcat_core_path/mklocalrepo.sh
if [ -z "$local_flag" ]
then
echo "###############################"
@ -211,6 +219,14 @@ __EOF__
reprepro -b $repo_xcat_dep_path includedeb $DISTRIB_CODENAME $file;
done
cat << '__EOF__' > $repo_xcat_dep_path/mklocalrepo.sh
. /etc/lsb-release
cd `dirname $0`
echo deb file://"`pwd`" $DISTRIB_CODENAME main > /etc/apt/sources.list.d/xcat-dep.list
__EOF__
chmod 775 $repo_xcat_core_path/mklocalrepo.sh
if [ -z "$local_flag" ]
then
echo "##############################"