Merge pull request #1494 from callahad/issue-1493

Correctly install packages for DOKKU_TAG=v0.4.0
This commit is contained in:
Michael Hobbs committed 2015-09-23 15:59:48 -07:00
commit e345cb6b93
1 file changed
+7 -7
+7 -7
View File
@@ -71,16 +71,16 @@ elif [[ -n $DOKKU_TAG ]]; then
patch=$(echo $DOKKU_SEMVER | awk '{split($0,a,"."); print a[3]}') patch=$(echo $DOKKU_SEMVER | awk '{split($0,a,"."); print a[3]}')
# 0.3.13 was the first version with a debian package # 0.3.13 was the first version with a debian package
if [[ "$major" -eq "0" ]] && [[ "$minor" -ge "3" ]] && [[ "$patch" -ge "13" ]]; then if [[ "$major" -eq "0" ]] && [[ "$minor" -eq "3" ]] && [[ "$patch" -ge "13" ]]; then
export DOKKU_CHECKOUT="$DOKKU_SEMVER" export DOKKU_CHECKOUT="$DOKKU_SEMVER"
dokku_install_package dokku_install_package
echo "--> Running post-install dependency installation" echo "--> Running post-install dependency installation"
# 0.4.0 implemented a `plugin` plugin dokku plugins-install-dependencies
if [[ "$major" -eq "0" ]] && [[ "$minor" -ge "4" ]] && [[ "$patch" -ge "0" ]]; then # 0.4.0 implemented a `plugin` plugin
dokku plugin:install-dependencies --core elif [[ "$major" -eq "0" ]] && [[ "$minor" -ge "4" ]] && [[ "$patch" -ge "0" ]]; then
else export DOKKU_CHECKOUT="$DOKKU_SEMVER"
dokku plugins-install-dependencies dokku_install_package
fi dokku plugin:install-dependencies --core
else else
export DOKKU_CHECKOUT="$DOKKU_TAG" export DOKKU_CHECKOUT="$DOKKU_TAG"
dokku_install_source dokku_install_source