Give more priority to the "Profile environment variables" when mounting storages in the launch.sh
@@ -1408,8 +1408,10 @@ echo
######################################################
+######################################################
echo "Setting up Gitlab credentials"
-
+echo "-"
+######################################################
set_git_credentials
_GIT_CREDS_RESULT=$?
@@ -1419,21 +1421,6 @@ then
echo "Failed to get user's Gitlab credentials"
fi
echo "------"
-
-######################################################
-echo Checking if remote data storages shall be mounted
-echo "------"
-######################################################
-MOUNT_DATA_STORAGES_TASK_NAME="MountDataStorages"
-DATA_STORAGE_MOUNT_ROOT="${CP_STORAGE_MOUNT_ROOT_DIR:-/cloud-data}"
-
-echo "Cleaning any data in common storage mount point directory: ${DATA_STORAGE_MOUNT_ROOT}"
-rm -Rf $DATA_STORAGE_MOUNT_ROOT
-create_sys_dir $DATA_STORAGE_MOUNT_ROOT
-mount_storages $DATA_STORAGE_MOUNT_ROOT $TMP_DIR $MOUNT_DATA_STORAGES_TASK_NAME
-
-echo "------"
-echo
######################################################
MOUNT_GIT_TASK_NAME="MountRepository"
@@ -1559,6 +1546,23 @@ echo
######################################################
+######################################################
+echo "Checking if remote data storages shall be mounted"
+echo "------"
+######################################################
+MOUNT_DATA_STORAGES_TASK_NAME="MountDataStorages"
+DATA_STORAGE_MOUNT_ROOT="${CP_STORAGE_MOUNT_ROOT_DIR:-/cloud-data}"
+
+echo "Cleaning any data in common storage mount point directory: ${DATA_STORAGE_MOUNT_ROOT}"
+rm -Rf $DATA_STORAGE_MOUNT_ROOT
+create_sys_dir $DATA_STORAGE_MOUNT_ROOT
+mount_storages $DATA_STORAGE_MOUNT_ROOT $TMP_DIR $MOUNT_DATA_STORAGES_TASK_NAME
+
+echo "------"
+echo
+######################################################
+
+
######################################################
echo "Create restriction wrappers"
echo "-"
