From 84a7d8b30dd97c58116e35d57fa6ff55aefbd2d9 Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Thu, 1 May 2025 17:26:46 +1200 Subject: [PATCH] Update README to reflect script usage and allow custom INSTALL_PATH --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e6e0518..9ebdf68 100644 --- a/README.md +++ b/README.md @@ -68,12 +68,18 @@ Mailpit runs as a single binary and can be installed in different ways: - **FreeBSD**: `pkg install mailpit` -### Install via bash script (Linux & Mac) +### Install via script (Linux & Mac) Linux & Mac users can install it directly to `/usr/local/bin/mailpit` with: -```bash -sudo bash < <(curl -sL https://raw.githubusercontent.com/axllent/mailpit/develop/install.sh) +```shell +sudo sh < <(curl -sL https://raw.githubusercontent.com/axllent/mailpit/develop/install.sh) +``` + +You can also change the install path to something else by setting the `INSTALL_PATH` environment, for example: + +```shell +INSTALL_PATH=/usr/bin sudo sh < <(curl -sL https://raw.githubusercontent.com/axllent/mailpit/develop/install.sh) ```