summaryrefslogtreecommitdiff
path: root/vagrant/configure-leap.sh
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2016-01-12 10:53:03 +0100
committerFolker Bernitt <fbernitt@thoughtworks.com>2016-01-12 10:56:00 +0100
commit98b38f15839eeee43a0c817de081a3beb494efaa (patch)
treeb4f9c4509d5435f40592691c048f2cfe23138660 /vagrant/configure-leap.sh
parent986a0ac73585d8f8427c6fa4818cbc662b59cef3 (diff)
Run git as user, not root
Diffstat (limited to 'vagrant/configure-leap.sh')
-rwxr-xr-xvagrant/configure-leap.sh11
1 files changed, 6 insertions, 5 deletions
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