mirror of
https://github.com/jakejarvis/mastodon-installer.git
synced 2026-09-14 01:55:33 -04:00
install sendmail as a fallback email provider
This commit is contained in:
+7
-1
@@ -46,7 +46,7 @@ sudo DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
|
|||||||
bison build-essential libssl-dev libyaml-dev libreadline6-dev \
|
bison build-essential libssl-dev libyaml-dev libreadline6-dev \
|
||||||
zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev \
|
zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev \
|
||||||
nginx redis-server redis-tools postgresql postgresql-contrib \
|
nginx redis-server redis-tools postgresql postgresql-contrib \
|
||||||
certbot python3-certbot-nginx libidn11-dev libicu-dev libjemalloc-dev
|
certbot python3-certbot-nginx sendmail libidn11-dev libicu-dev libjemalloc-dev
|
||||||
|
|
||||||
# setup yarn
|
# setup yarn
|
||||||
sudo npm install --global yarn
|
sudo npm install --global yarn
|
||||||
@@ -136,6 +136,12 @@ sudo sed -i "/etc/nginx/sites-available/$MASTODON_DOMAIN.conf" -e "/ssl_certific
|
|||||||
sudo ln -s "/etc/nginx/sites-available/$MASTODON_DOMAIN.conf" "/etc/nginx/sites-enabled/$MASTODON_DOMAIN.conf"
|
sudo ln -s "/etc/nginx/sites-available/$MASTODON_DOMAIN.conf" "/etc/nginx/sites-enabled/$MASTODON_DOMAIN.conf"
|
||||||
sudo sed -i /etc/nginx/nginx.conf -e "s/user www-data;/user mastodon;/g"
|
sudo sed -i /etc/nginx/nginx.conf -e "s/user www-data;/user mastodon;/g"
|
||||||
|
|
||||||
|
# set FQDN (especially necessary for sendmail)
|
||||||
|
echo -e "\n# Added by mastodon-installer @ $(date)
|
||||||
|
127.0.0.1 localhost $MASTODON_DOMAIN
|
||||||
|
::1 localhost $MASTODON_DOMAIN" | sudo tee -a /etc/hosts >/dev/null
|
||||||
|
sudo hostnamectl set-hostname "$MASTODON_DOMAIN" || true
|
||||||
|
|
||||||
# enable systemd services on startup
|
# enable systemd services on startup
|
||||||
sudo cp "$MASTODON_ROOT"/live/dist/mastodon-*.service /etc/systemd/system/
|
sudo cp "$MASTODON_ROOT"/live/dist/mastodon-*.service /etc/systemd/system/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user