1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-22 02:17:26 +00:00

bootstrap script should check out a particular tag rather than master

This commit is contained in:
Joshua Tauberer 2014-08-21 17:23:47 +00:00
parent 76dcab3139
commit 9576594cfe

View File

@ -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
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