Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Commit

Permalink
Merge pull request #120 from thom8/circle_14
Browse files Browse the repository at this point in the history
Updated beetbox.sh for circle 14.04.
  • Loading branch information
thom8 committed Feb 10, 2016
2 parents 2dfeb9d + c3ecb8e commit 79157b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
machine:
python:
version: 2.7.6
hosts:
beetbox.local: 127.0.0.1
environment:
BEET_HOME: /beetbox
BEET_BASE: /var/beetbox
Expand Down
16 changes: 11 additions & 5 deletions packer/scripts/beetbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,21 @@ BEET_BRANCH=${BEET_BRANCH:="master"}

if [ ! -f "$BEET_HOME/.beetbox/installed" ]; then

# Remove default circle CI packages.
if [ "$CIRCLECI" == "true" ]; then
echo "Removing default circle CI packages"
sudo apt-get -qq update
sudo apt-get -y purge apache2 php5-cli mysql-common mysql-server mysql-common
sudo apt-get -y autoremove
sudo apt-get -y autoclean
sudo rm -rf /etc/apache2/mods-enabled/*
sudo rm -rf /var/lib/mysql
fi

# Install ansible.
sudo apt-get -y install python-pip python-dev
sudo -H pip install ansible==$ANSIBLE_VERSION

# Remove default packages.
sudo apt-get -qq update
sudo apt-get -y purge apache2 php5-cli mysql-common mysql-server
sudo rm -rf /etc/apache2/mods-enabled/*

# Clone beetbox if BEET_HOME doesn't exist.
if [ ! -d "$BEET_HOME" ]; then
sudo apt-get -y install git
Expand Down

0 comments on commit 79157b6

Please sign in to comment.