run as bash
This commit is contained in:
@@ -67,7 +67,7 @@
|
|||||||
--console-address ":${toString opts.consolePort}"
|
--console-address ":${toString opts.consolePort}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
ExecStartPost = ''
|
ExecStartPost = "${pkgs.bash}/bin/bash -c ''
|
||||||
for i in {1..30}; do
|
for i in {1..30}; do
|
||||||
if ${pkgs.curl}/bin/curl -s http://localhost:${toString opts.dataPort}/minio/health/ready >/dev/null; then
|
if ${pkgs.curl}/bin/curl -s http://localhost:${toString opts.dataPort}/minio/health/ready >/dev/null; then
|
||||||
break
|
break
|
||||||
@@ -75,10 +75,10 @@
|
|||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
${pkgs.minio-client}/bin/mc alias set local http://localhost:${toString opts.dataPort} "$MINIO_ROOT_USER" "$MINIO_ROOT_PASSWORD"
|
${pkgs.minio-client}/bin/mc alias set local http://localhost:${toString opts.dataPort} \"$MINIO_ROOT_USER\" \"$MINIO_ROOT_PASSWORD\"
|
||||||
${pkgs.minio-client}/bin/mc mb --ignore-existing local/prod
|
${pkgs.minio-client}/bin/mc mb --ignore-existing prod
|
||||||
${pkgs.minio-client}/bin/mc mb --ignore-existing local/dev
|
${pkgs.minio-client}/bin/mc mb --ignore-existing dev
|
||||||
'';
|
''";
|
||||||
|
|
||||||
User = "minio";
|
User = "minio";
|
||||||
Group = "minio";
|
Group = "minio";
|
||||||
|
|||||||
Reference in New Issue
Block a user