Skip to content

Commit

Permalink
For idempotency, return to script directory after Git cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
mvl22 committed Oct 11, 2015
1 parent 318299c commit 4305e32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions 2-install-bob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
if [ ! -d ${installationRoot}/bob ] ; then
cd "${installationRoot}"
git clone https://github.com/cusu/bob.git
cd "${SCRIPTDIRECTORY}"
fi

# MTA (mail sending)
Expand Down Expand Up @@ -45,5 +46,6 @@ zypper -n install -l python
if [ ! -d ${installationRoot}/openstv ] ; then
cd "${installationRoot}"
git clone https://github.com/cusu/openstv.git
cd "${SCRIPTDIRECTORY}"
fi

5 changes: 3 additions & 2 deletions 3-install-bob-gui-listing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

# Add the BOB-GUI software (the native voting component, without any setup management)
if [ ! -d ${installationRoot}/bob-gui ] ; then
cd "${installationRoot}"
git clone https://github.com/cusu/bob-gui.git
cd "${installationRoot}"
git clone https://github.com/cusu/bob-gui.git
cd "${SCRIPTDIRECTORY}"
fi

# Ensure the additionalvotes folder is writable by the webserver
Expand Down

0 comments on commit 4305e32

Please sign in to comment.