Skip to content

Commit e85ab7b

Browse files
committed
Add support for DOKKU_TAG in bootstrap.sh
Fixes #330 Refs #329
1 parent d11f732 commit e85ab7b

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

‎bootstrap.sh‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,23 @@ export DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
55

66
if ! which apt-get &>/dev/null
77
then
8-
echo "This installation script requires apt-get. For manual installation instructions, consult https://github.com/progrium/dokku ."
9-
exit 1
8+
echo "This installation script requires apt-get. For manual installation instructions, consult https://github.com/progrium/dokku ."
9+
exit 1
1010
fi
1111

1212
apt-get update
1313
apt-get install -y git make curl software-properties-common
1414

1515
cd ~ && test -d dokku || git clone $DOKKU_REPO
16-
cd dokku && test $DOKKU_BRANCH && git checkout origin/$DOKKU_BRANCH || true
16+
cd dokku
17+
git fetch origin
18+
19+
if [[ -n $DOKKU_BRANCH ]]; then
20+
git checkout origin/$DOKKU_BRANCH
21+
elif [[ -n $DOKKU_TAG ]]; then
22+
git checkout $DOKKU_TAG
23+
fi
24+
1725
make install
1826

1927
echo

0 commit comments

Comments
 (0)