diff --git a/helm/minio/templates/_helper_create_user.txt b/helm/minio/templates/_helper_create_user.txt index 7fd4cde18..df94f3a77 100644 --- a/helm/minio/templates/_helper_create_user.txt +++ b/helm/minio/templates/_helper_create_user.txt @@ -10,7 +10,7 @@ MC="/usr/bin/mc --insecure" # AccessKey and secretkey credentials file are added to prevent shell execution errors caused by special characters. # Special characters for example : ',",<,>,{,} -MINIO_ACCESSKEY_SECRETKEY_TMP="/config/accessKey_and_secretKey_tmp" +MINIO_ACCESSKEY_SECRETKEY_TMP="/tmp/accessKey_and_secretKey_tmp" # connectToMinio # Use a check-sleep-check loop to wait for MinIO service to be available @@ -61,6 +61,7 @@ createUser() { fi # Create the user if it does not exist if ! checkUserExists ; then + USER=$(head -1 $MINIO_ACCESSKEY_SECRETKEY_TMP) echo "Creating user '$USER'" cat $MINIO_ACCESSKEY_SECRETKEY_TMP | ${MC} admin user add myminio else