Commit 9576594c authored by Joshua Tauberer's avatar Joshua Tauberer

bootstrap script should check out a particular tag rather than master

parent 76dcab31
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# #
######################################################### #########################################################
TAG=14.08-beta
# Are we running as root? # Are we running as root?
if [[ $EUID -ne 0 ]]; then if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root. Did you leave out sudo?" echo "This script must be run as root. Did you leave out sudo?"
...@@ -19,14 +21,16 @@ cd ...@@ -19,14 +21,16 @@ cd
if [ ! -d mailinabox ]; then if [ ! -d mailinabox ]; then
echo Downloading Mail-in-a-Box . . . echo Downloading Mail-in-a-Box . . .
apt-get -q -q install -y git apt-get -q -q install -y git
git clone -q --depth 1 -b master https://github.com/mail-in-a-box/mailinabox git clone -q https://github.com/mail-in-a-box/mailinabox
cd mailinabox cd mailinabox
git checkout -q $TAG
# If it does exist, update it. # If it does exist, update it.
else else
echo Updating Mail-in-a-Box . . . echo Updating Mail-in-a-Box . . .
cd mailinabox cd mailinabox
if ! git pull -q --ff-only; then git fetch
if ! git checkout -q $TAG; then
echo "Update failed. Did you modify something in `pwd`?" echo "Update failed. Did you modify something in `pwd`?"
exit exit
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment