From 98b38f15839eeee43a0c817de081a3beb494efaa Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Tue, 12 Jan 2016 10:53:03 +0100 Subject: Run git as user, not root --- vagrant/configure-leap.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'vagrant') diff --git a/vagrant/configure-leap.sh b/vagrant/configure-leap.sh index 00811144..96344400 100755 --- a/vagrant/configure-leap.sh +++ b/vagrant/configure-leap.sh @@ -10,6 +10,7 @@ NODE='node1' SUDO="sudo -u ${USER}" PROVIDERDIR="/home/${USER}/leap/configuration" LEAP="$SUDO /usr/local/bin/leap" +GIT="$SUDO git" echo '===============================================' echo 'configuring leap' @@ -43,9 +44,9 @@ echo '{ "webapp": { "admins": ["testadmin"] } }' > services/webapp.json $LEAP $OPTS compile -git init -git add . -git commit -m'configured provider' +$GIT init +$GIT add . +$GIT commit -m'configured provider' $LEAP $OPTS node init $NODE if [ $? -eq 1 ]; then @@ -61,8 +62,8 @@ gem install rake $LEAP $OPTS -v 2 deploy set +e -git add . -git commit -m'initialized and deployed provider' +$GIT add . +$GIT commit -m'initialized and deployed provider' set -e # Vagrant: leap_mx fails to start on jessie -- cgit v1.2.3