Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save endelwar/c47ea56109df1ef9090cdf551320cb82 to your computer and use it in GitHub Desktop.

Select an option

Save endelwar/c47ea56109df1ef9090cdf551320cb82 to your computer and use it in GitHub Desktop.

Revisions

  1. Varghese Jacob revised this gist May 26, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Mailhog Bash Script (systemd)
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    echo ">>> Installing Mailhog"

    # Download binary from github
    wget --quiet -O ~/mailhog https://github.com/mailhog/MailHog/releases/download/v0.2.1/MailHog_linux_amd64
    wget --quiet -O ~/mailhog https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64

    # Make it executable
    chmod +x ~/mailhog
  2. Varghese Jacob revised this gist Sep 19, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Mailhog Bash Script (systemd)
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    echo ">>> Installing Mailhog"

    # Download binary from github
    wget --quiet -O ~/mailhog https://github.com/mailhog/MailHog/releases/download/v0.2.0/MailHog_linux_amd64
    wget --quiet -O ~/mailhog https://github.com/mailhog/MailHog/releases/download/v0.2.1/MailHog_linux_amd64

    # Make it executable
    chmod +x ~/mailhog
  3. Varghese Jacob created this gist Jul 3, 2016.
    29 changes: 29 additions & 0 deletions Mailhog Bash Script (systemd)
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    #!/usr/bin/env bash

    echo ">>> Installing Mailhog"

    # Download binary from github
    wget --quiet -O ~/mailhog https://github.com/mailhog/MailHog/releases/download/v0.2.0/MailHog_linux_amd64

    # Make it executable
    chmod +x ~/mailhog

    # Make it start on reboot
    sudo tee /etc/systemd/system/mailhog.service <<EOL
    [Unit]
    Description=MailHog Service
    After=network.service vagrant.mount
    [Service]
    Type=simple
    ExecStart=/usr/bin/env /home/vagrant/mailhog > /dev/null 2>&1 &
    [Install]
    WantedBy=multi-user.target
    EOL

    # Start on reboot
    sudo systemctl enable mailhog

    # Start background service now
    sudo systemctl start mailhog