home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 10 Feb 2020 18:34:18 +0000 (19:34 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 10 Feb 2020 18:34:18 +0000 (19:34 +0100)
buster/apt-mark/peertube
buster/setup_scripts/setup_pleroma.sh

index 4e4c19ab01043454fc1f602338b532882d3344fc..676bda917193ac01e4d61043f8e3d840b71f29af 100644 (file)
@@ -13,3 +13,4 @@ curl
 unzip
 libncurses5
 pwgen
+wget
index 9fb937a85a373bfa3f3a21902d907bd73dbe5e2b..7dd7b3f982dda0e66698f8924aaef2e5e638b099 100755 (executable)
@@ -16,7 +16,9 @@ config_tree_prefix="${HOME}/config/buster"
 nft -f /etc/nftables.conf
 
 # Set up letsencrypt certificate. TODO: Is it auto-renewed?
+ln -sf /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
 certbot --nginx --agree-tos --redirect --no-eff-email -m "${mail}" -d "${domain}"
+rm /etc/nginx/sites-enabled/default
 
 # Prepare user.
 adduser --system --shell  /bin/false --home /opt/pleroma pleroma
@@ -75,7 +77,6 @@ cp "${config_tree_prefix}/other_files/pleroma_panel.html" /var/lib/pleroma/stati
 cp /opt/pleroma/installation/pleroma.nginx /etc/nginx/sites-available/pleroma.nginx
 sed -i "s/example\.tld/${domain}/g" /etc/nginx/sites-available/pleroma.nginx
 ln -s /etc/nginx/sites-available/pleroma.nginx /etc/nginx/sites-enabled/pleroma.nginx
-rm /etc/nginx/sites-enabled/default
 
 # Systemd integration.
 cp /opt/pleroma/installation/pleroma.service /etc/systemd/system/pleroma.service