mirror of
https://github.com/minio/minio.git
synced 2025-02-22 19:12:31 -05:00
fix: issue when a Helm create user job returns more than once (#15321)
This commit is contained in:
parent
ba9691a0ad
commit
ed02ee4ef4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user