Skip to content

Commit

Permalink
[v4.2.3] Fixed a bug in MinIO env variables creation
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodM4ven committed Oct 31, 2024
1 parent a40e58e commit 6ac738a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/functions/minio_up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ EOF

# ? Update the Laravel project's environment variables for MinIO storage
cd $projects_directory/$escaped_project_name

if ! grep -q '^AWS_ENDPOINT=' ./.env; then
sed -i "/^AWS_BUCKET=.*/a AWS_ENDPOINT=" ./.env
fi
if ! grep -q '^AWS_URL=' ./.env; then
sed -i "/^AWS_ENDPOINT=.*/a AWS_URL=" ./.env
fi

sed -i "/^FILESYSTEM_DISK=/c\FILESYSTEM_DISK=s3" ./.env
sed -i "/^AWS_ACCESS_KEY_ID=/c\AWS_ACCESS_KEY_ID=minioadmin" ./.env
sed -i "/^AWS_SECRET_ACCESS_KEY=/c\AWS_SECRET_ACCESS_KEY=minioadmin" ./.env
Expand Down

0 comments on commit 6ac738a

Please sign in to comment.