Fix load of Minio env variables in installation scripts 28/15328/3
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 8 Aug 2025 08:02:01 +0000 (10:02 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 8 Aug 2025 14:49:48 +0000 (16:49 +0200)
Change-Id: I2b76b7834a551ab5e8af0e278c92ee851e45ed19
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/00-default-install-options.rc
installers/10-install-client-tools.sh
installers/20-deploy-aux-svc-cluster.sh

index 9afcf70..eac6569 100644 (file)
@@ -46,4 +46,5 @@ export KUBECONFIG_OSM_CLUSTER=
 export OSM_BEHIND_PROXY=
 export OPENSHIFT_MGMT_CLUSTER=
 export MGMT_CLUSTER_CA_FILE=
-export OSM_K8S_NGINX_IPADDRESS=
\ No newline at end of file
+export OSM_K8S_NGINX_IPADDRESS=
+
index 1d8c86f..5a02e70 100755 (executable)
@@ -21,7 +21,9 @@ source "${HERE}/../library/trap.sh"
 source "${HERE}/../library/logging"
 source "${HERE}/../library/track"
 
-INSTALL_MINIO=${INSTALL_MINIO:-"y"}
+source "${HERE}/00-default-install-options.rc"
+[ ! -f "${OSM_HOME_DIR}/user-install-options.rc" ] || source "${OSM_HOME_DIR}/user-install-options.rc"
+
 echo "INSTALL_MINIO=$INSTALL_MINIO"
 
 pushd $HOME
index 3faca66..27caa84 100755 (executable)
@@ -96,7 +96,6 @@ m "\n#####################################################################" "${C
 m "(3/3) Installing Minio..." "${CYAN}"
 m "#####################################################################\n" "${CYAN}"
 
-INSTALL_MINIO=${INSTALL_MINIO:-"y"}
 echo "INSTALL_MINIO=$INSTALL_MINIO"
 if [ -n "${INSTALL_MINIO}" ]; then
     # Enter the Minio folder