From ba7bda6c54e6ddc2265ad39d36be78617861900f Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Fri, 19 Jan 2024 15:35:22 -0600 Subject: [PATCH] drop Mailpit feature this is now included by default in the base box, and doesn't require a feature flag to be activated. --- scripts/features/mailpit.sh | 41 ------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 scripts/features/mailpit.sh diff --git a/scripts/features/mailpit.sh b/scripts/features/mailpit.sh deleted file mode 100644 index e7709f6a3..000000000 --- a/scripts/features/mailpit.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -if [ -f ~/.homestead-features/wsl_user_name ]; then - WSL_USER_NAME="$(cat ~/.homestead-features/wsl_user_name)" - WSL_USER_GROUP="$(cat ~/.homestead-features/wsl_user_group)" -else - WSL_USER_NAME=vagrant - WSL_USER_GROUP=vagrant -fi - -export DEBIAN_FRONTEND=noninteractive - -if [ -f /home/$WSL_USER_NAME/.homestead-features/mailpit ] -then - echo "mailpit already installed." - exit 0 -fi - -touch /home/$WSL_USER_NAME/.homestead-features/mailpit -chown -Rf $WSL_USER_NAME:$WSL_USER_GROUP /home/$WSL_USER_NAME/.homestead-features - -curl -sL https://raw.githubusercontent.com/axllent/mailpit/develop/install.sh | sh - -chown -f $WSL_USER_NAME:$WSL_USER_GROUP /usr/local/bin/mailpit - -cat > /etc/systemd/system/mailpit.service << EOF -[Unit] -Description=Mailpit -After=network.target - -[Service] -User=vagrant -ExecStart=/usr/bin/env /usr/local/bin/mailpit - -[Install] -WantedBy=multi-user.target -EOF - -systemctl disable --now mailpit - -systemctl enable --now mailpit