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

bootstrap.sh: allow overring the tag to checkout by setting the TAG environment variable (helpful for debugging)

This commit is contained in:
Joshua Tauberer 2014-08-25 08:18:46 -04:00
parent faf6f87a63
commit bf5016a8ac

View File

@ -6,7 +6,9 @@
#
#########################################################
TAG=14.08-beta
if [ -z "$TAG" ]; then
TAG=14.08-beta
fi
# Are we running as root?
if [[ $EUID -ne 0 ]]; then
@ -27,7 +29,7 @@ if [ ! -d mailinabox ]; then
# If it does exist, update it.
else
echo Updating Mail-in-a-Box . . .
echo Updating Mail-in-a-Box to $TAG . . .
cd mailinabox
git fetch
if ! git checkout -q $TAG; then