fix: allow bootstrap.sh to function properly against version 1.0.0+
Refs #2263
This commit is contained in:
1 parent
c4ba380627
commit
a55fb34a77
1 file changed
+9
-2
+9
-2
@@ -46,13 +46,20 @@ install-dokku() {
|
|||||||
minor=$(echo "$DOKKU_SEMVER" | awk '{split($0,a,"."); print a[2]}')
|
minor=$(echo "$DOKKU_SEMVER" | awk '{split($0,a,"."); print a[2]}')
|
||||||
patch=$(echo "$DOKKU_SEMVER" | awk '{split($0,a,"."); print a[3]}')
|
patch=$(echo "$DOKKU_SEMVER" | awk '{split($0,a,"."); print a[3]}')
|
||||||
|
|
||||||
|
use_plugin=false
|
||||||
|
# 0.4.0 implemented a `plugin` plugin
|
||||||
|
if [[ "$major" -eq "0" ]] && [[ "$minor" -ge "4" ]] && [[ "$patch" -ge "0" ]]; then
|
||||||
|
use_plugin=true
|
||||||
|
elif [[ "$major" -ge "1" ]]; then
|
||||||
|
use_plugin=true
|
||||||
|
fi
|
||||||
|
|
||||||
# 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" -eq "3" ]] && [[ "$patch" -ge "13" ]]; then
|
if [[ "$major" -eq "0" ]] && [[ "$minor" -eq "3" ]] && [[ "$patch" -ge "13" ]]; then
|
||||||
install-dokku-from-package "$DOKKU_SEMVER"
|
install-dokku-from-package "$DOKKU_SEMVER"
|
||||||
echo "--> Running post-install dependency installation"
|
echo "--> Running post-install dependency installation"
|
||||||
dokku plugins-install-dependencies
|
dokku plugins-install-dependencies
|
||||||
# 0.4.0 implemented a `plugin` plugin
|
elif [[ "$use_plugin" == "true" ]]; then
|
||||||
elif [[ "$major" -eq "0" ]] && [[ "$minor" -ge "4" ]] && [[ "$patch" -ge "0" ]]; then
|
|
||||||
install-dokku-from-package "$DOKKU_SEMVER"
|
install-dokku-from-package "$DOKKU_SEMVER"
|
||||||
echo "--> Running post-install dependency installation"
|
echo "--> Running post-install dependency installation"
|
||||||
sudo -E dokku plugin:install-dependencies --core
|
sudo -E dokku plugin:install-dependencies --core
|
||||||
|
|||||||
Reference in new issue
Block a user