Skip to content

Commit

Permalink
Swaps git installation to ppa repo. Fixes #872 (#916)
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-jason authored and jeremyfelt committed Jun 14, 2016
1 parent 838b694 commit c23f0af
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion provision/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ apt_package_check_list=(
# other packages that come in handy
imagemagick
subversion
git-core
git
zip
unzip
ngrep
Expand Down Expand Up @@ -119,6 +119,21 @@ network_check() {
fi
}

git_ppa_check() {
# git
#
# apt-get does not have latest version of git,
# so let's the use ppa repository instead.
#
# Install prerequisites.
sudo apt-get install -y python-software-properties software-properties-common &>/dev/null
# Add ppa repo.
echo "Adding ppa:git-core/ppa repository"
sudo add-apt-repository -y ppa:git-core/ppa &>/dev/null
# Update apt-get info.
sudo apt-get update &>/dev/null
}

noroot() {
sudo -EH -u "vagrant" "$@";
}
Expand Down Expand Up @@ -837,6 +852,7 @@ network_check
# Package and Tools Install
echo " "
echo "Main packages check and install."
git_ppa_check
package_install
tools_install
nginx_setup
Expand Down

0 comments on commit c23f0af

Please sign in to comment.