File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -10250,6 +10250,9 @@ _EOF_
1025010250 if [[ ! -f '/etc/default/minio' ]]
1025110251 then
1025210252 G_DIETPI-NOTIFY 2 'Generating MinIO server config'
10253+ # Password needs to be >=8 characters long
10254+ local minio_pw=$GLOBAL_PW
10255+ until (( ${#minio_pw} >= 8 )); do minio_pw+=$GLOBAL_PW; done
1025310256 G_EXEC install -g minio-user -m 0640 /dev/null /etc/default/minio
1025410257 cat << _EOF_ > /etc/default/minio || exit 1
1025510258# Docs: https://minio.community/community/minio-object-store/reference/minio-server/settings.html
@@ -10264,8 +10267,9 @@ MINIO_OPTS='--address :9004 --console-address :9001'
1026410267MINIO_ROOT_USER='dietpi'
1026510268
1026610269# Admin password
10267- MINIO_ROOT_PASSWORD='$GLOBAL_PW '
10270+ MINIO_ROOT_PASSWORD='$minio_pw '
1026810271_EOF_
10272+ unset -v minio_pw
1026910273 fi
1027010274
1027110275 # Console client config and alias
You can’t perform that action at this time.
0 commit comments