Skip to content

Instantly share code, notes, and snippets.

@typomedia
Last active March 11, 2024 09:38
Show Gist options
  • Save typomedia/6061eddf2682a7e14ce0deca261ad8bc to your computer and use it in GitHub Desktop.
Save typomedia/6061eddf2682a7e14ce0deca261ad8bc to your computer and use it in GitHub Desktop.
Listmonk Installer & Updater
#!/bin/bash
# Copyright 2023 Typomedia Foundation. All rights reserved.
# Released under GPL version 3.
#
# Listmonk Installer & Updater
json=$(curl -LsS 'https://api.github.com/repos/knadh/listmonk/releases/latest')
link=$(echo $json | jq -r '.assets[] | select(.name | contains("linux_amd64.tar.gz")).browser_download_url')
dest=/usr/local/bin
sudo curl -LsS $link | sudo tar xvz -C $dest listmonk
listmonk --version
yes | listmonk --config /etc/listmonk.toml --upgrade
sudo chown listmonk:listmonk $dest/listmonk
sudo setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/listmonk
sudo systemctl restart listmonk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment