From cee7a58d421badce8f2a9b798dc659ae7e103006 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Mon, 13 Nov 2006 19:04:16 +0000 Subject: [PATCH] - move vserver-reference to .vref/default --- build.sh | 4 ++-- vserver-reference.spec | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index af9c589..fa420c0 100755 --- a/build.sh +++ b/build.sh @@ -84,10 +84,10 @@ done set -e # Make /vservers -vroot=$PWD/vservers/vserver-reference +vroot=$PWD/vservers/.vref/default install -d -m 755 $vroot -# Install vserver-reference system +# Install default reference image for package in "${packagelist[@]}" ; do packages="$packages -p $package" done diff --git a/vserver-reference.spec b/vserver-reference.spec index 1616904..0839f95 100644 --- a/vserver-reference.spec +++ b/vserver-reference.spec @@ -1,6 +1,6 @@ %define name vserver %define version 4.0 -%define release 2%{?pldistro:.%{pldistro}}%{?date:.%{date}} +%define release 3%{?pldistro:.%{pldistro}}%{?date:.%{date}} Vendor: PlanetLab Packager: PlanetLab Central @@ -78,7 +78,7 @@ fi %defattr(-,root,root) %{_initrddir}/vserver-reference %{_sysconfdir}/cron.d/vserver-reference -/vservers/vserver-reference +/vservers/.vref/default %files system-packages %defattr(-,root,root) @@ -95,8 +95,8 @@ echo $$ > %{vcached_pid} # vcached will clean up .vtmp later mkdir -p /vservers/.vtmp -if [ -d /vservers/vserver-reference ] ; then - mv /vservers/vserver-reference /vservers/.vtmp/vserver-reference.$RANDOM +if [ -d /vservers/.vref ] ; then + mv /vservers/.vref /vservers/.vtmp/.vref.$RANDOM fi if [ -d /vservers/.vcache ] ; then mv /vservers/.vcache /vservers/.vtmp/.vcache.$RANDOM -- 2.43.0