diff --git a/install/flux-version-check.sh b/install/flux-version-check.sh new file mode 100644 index 0000000000000000000000000000000000000000..ecc57f66a61710c8ac140f5d3bd2c4a08b4881e0 --- /dev/null +++ b/install/flux-version-check.sh @@ -0,0 +1,4 @@ +if [ "$(flux --version)" != "flux version 0.14.2" ]; then + echo "The OpenAppStack installation only works with Flux version 0.14.2" + exit 1; +fi diff --git a/install/install-nextcloud.sh b/install/install-nextcloud.sh index 1f9998817e88e506abb2e46103defd012be5830b..41f0828227c44a9af1ba401adaf5b63dc0fecc6c 100755 --- a/install/install-nextcloud.sh +++ b/install/install-nextcloud.sh @@ -2,6 +2,8 @@ set -euo pipefail +bash $(dirname "$0")/flux-version-check.sh + # This kustomization's only purpose is to add the kustomization that is in the # flxu2/cluster/optional/nextcloud folder. After this kustomization is applied # an `add-nextcloud` kustomization will be present on the cluster, as well as a diff --git a/install/install-openappstack.sh b/install/install-openappstack.sh index 4c90eae1cd90500aa306e780dc5b2142ddf966b4..3ce0ab8eead7b9435ad1376b2e2edf5a841b2bc3 100755 --- a/install/install-openappstack.sh +++ b/install/install-openappstack.sh @@ -2,6 +2,8 @@ set -euo pipefail +bash $(dirname "$0")/flux-version-check.sh + flux install \ --network-policy=false \ --watch-all-namespaces=true \ diff --git a/install/install-rocketchat.sh b/install/install-rocketchat.sh index bbf145ead3293e5e38081211e2c5f9c49975ae18..15214740595c56b487c7d04afcfa9fa5fabe25d5 100755 --- a/install/install-rocketchat.sh +++ b/install/install-rocketchat.sh @@ -2,6 +2,8 @@ set -euo pipefail +bash $(dirname "$0")/flux-version-check.sh + # This kustomization's only purpose is to add the kustomization that is in the # flxu2/cluster/optional/rocketchat folder. After this kustomization is applied # an `add-rocketchat` kustomization will be present on the cluster, as well as a diff --git a/install/install-velero.sh b/install/install-velero.sh index ade3b6f1ec0df645f9365fbb11f9b7fe03a918df..ab28e430c0a19b6ff10206d7ade08bf2deb46715 100755 --- a/install/install-velero.sh +++ b/install/install-velero.sh @@ -2,6 +2,8 @@ set -euo pipefail +bash $(dirname "$0")/flux-version-check.sh + # This kustomization's only purpose is to add the kustomization that is in the # flxu2/cluster/optional/velero folder. After this kustomization is applied # an `add-velero` kustomization will be present on the cluster, as well as a diff --git a/install/install-wordpress.sh b/install/install-wordpress.sh index b734bf6006ea186cd15f9bcb99177e576fd6fc68..2e7ee3598269de1732cdbab82482a95f4f265ac6 100755 --- a/install/install-wordpress.sh +++ b/install/install-wordpress.sh @@ -2,6 +2,8 @@ set -euo pipefail +bash $(dirname "$0")/flux-version-check.sh + # This kustomization's only purpose is to add the kustomization that is in the # flxu2/cluster/optional/wordpress folder. After this kustomization is applied # an `add-wordpress` kustomization will be present on the cluster, as well as a