Additional fixes to make provisioning work in ArchLinux and FreeBSD

This commit is contained in:
Bernhard Gschaider 2014-11-14 14:33:52 +01:00 committed by Dominik Christ
parent 9c886f6d51
commit c6a7ff4d10
2 changed files with 9 additions and 4 deletions

View file

@ -33,7 +33,7 @@ done
# for the used archlinux-Box the /home is too small but / is big enough # for the used archlinux-Box the /home is too small but / is big enough
mkdir /Foam mkdir /Foam
ln -s /Foam/ /home/vagrant/foam/ ln -s /Foam/ /home/vagrant/foam
chown vagrant:vagrant /Foam chown vagrant:vagrant /Foam
echo echo

View file

@ -18,7 +18,12 @@ done
OFDIR=/home/vagrant/foam/ OFDIR=/home/vagrant/foam/
mkdir -vp $OFDIR # make sure that a symbolic link is not erased
if [ ! -e $OFDIR ]; then
echo "Making directory $OFDIR"
mkdir -vp $OFDIR
fi
chown -R vagrant:vagrant $OFDIR chown -R vagrant:vagrant $OFDIR
# for distros that don't have group vagrant # for distros that don't have group vagrant
@ -42,7 +47,7 @@ then
echo echo
# su -c not correctly working on FreeBSD # su -c not correctly working on FreeBSD
su vagrant - -c "git clone $OFParent $OFClone" su - vagrant -c "git clone $OFParent $OFClone"
echo echo
echo "Git cloned: TODO: set same branch as parent" echo "Git cloned: TODO: set same branch as parent"
@ -58,7 +63,7 @@ then
echo "Parent is on id $idName" echo "Parent is on id $idName"
echo "Cloning. This may take some time" echo "Cloning. This may take some time"
su vagrant - -c "hg clone -u $idName $OFParent $OFClone" su - vagrant -c "hg clone -u $idName $OFParent $OFClone"
echo echo
else else
echo echo