diff --git a/README.md b/README.md index 8edfcc8..885da5e 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,32 @@ chmod +x install_mailhog_as_service.sh ./install_mailhog_as_service.sh ``` +## Workaround bij foutmelding in Ubuntu 22.04: "note: module requires Go 1.20" +``` +- Download gewenste versie van Go: +wget -c https://go.dev/dl/go1.22.0.linux-amd64.tar.gz + +- Ga naar de map waar het bestand staat en pak het uit: +sudo tar -C /usr/local/ -xzf go1.22.0.linux-amd64.tar.gz + +- Set PATH Environment Variable +export PATH=$PATH:/usr/local/go/bin + +- Voeg onderstaande code toe aan .profile om het definitief te maken: +# set PATH so it includes /usr/local/go/bin if it exists +if [ -d "/usr/local/go/bin" ] ; then + PATH="/usr/local/go/bin:$PATH" +fi + +- reload .profile (let op: mét punt!) +. ~/.profile + +- Controleer welke versie van Go actief is: +go version + +- Installeer nu Mailhog met het installatie script +``` + ## Na de installatie ``` systemctl enable mailhog