Last active
March 11, 2024 09:38
-
-
Save typomedia/6061eddf2682a7e14ce0deca261ad8bc to your computer and use it in GitHub Desktop.
Listmonk Installer & Updater
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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