mirror of
https://github.com/minio/minio.git
synced 2026-11-04 08:27:16 +00:00
fix: issue when a Helm create user job returns more than once (#15321)
This commit is contained in:
1 parent
ba9691a0ad
commit
ed02ee4ef4
1 file changed
+1
-1
@@ -59,9 +59,9 @@ createUser() {
|
||||
rm -f $MINIO_ACCESSKEY_SECRETKEY_TMP
|
||||
return 1
|
||||
fi
|
||||
USER=$(head -1 $MINIO_ACCESSKEY_SECRETKEY_TMP)
|
||||
# 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
|
||||
|
||||
Reference in new issue
Block a user