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
mkdir /Foam
ln -s /Foam/ /home/vagrant/foam/
ln -s /Foam/ /home/vagrant/foam
chown vagrant:vagrant /Foam
echo

View file

@ -18,7 +18,12 @@ done
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
# for distros that don't have group vagrant
@ -42,7 +47,7 @@ then
echo
# su -c not correctly working on FreeBSD
su vagrant - -c "git clone $OFParent $OFClone"
su - vagrant -c "git clone $OFParent $OFClone"
echo
echo "Git cloned: TODO: set same branch as parent"
@ -58,7 +63,7 @@ then
echo "Parent is on id $idName"
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
else
echo