home · contact · privacy
Prepare introduction of PeerTube setup script.
[config] / buster / setup_scripts / setup_pleroma.sh
index 59a872f2cffb6a3c5a006f8b3cff0052cd6a592e..9fb937a85a373bfa3f3a21902d907bd73dbe5e2b 100755 (executable)
@@ -12,7 +12,7 @@ mail="$2"
 # Install dependencies, set up firewall.
 config_tree_prefix="${HOME}/config/buster"
 ./install_for_target.sh pleroma
-./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" pleroma
+./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" web
 nft -f /etc/nftables.conf
 
 # Set up letsencrypt certificate. TODO: Is it auto-renewed?
@@ -63,6 +63,14 @@ su pleroma -s $SHELL -lc "./bin/pleroma_ctl migrate"
 # configurations to /etc/config.exs.
 cat "${config_tree_prefix}/other_files/append_pleroma_config" >> /etc/pleroma/config.exs
 
+# Single-pixel picture hack for removing Pleroma FE images.
+cp "${config_tree_prefix}/other_files/pixel.png" /var/lib/pleroma/static/
+chown pleroma:nogroup /var/lib/pleroma/static/pixel.png
+
+# Info panel.
+mkdir -p /var/lib/pleroma/static/instance
+cp "${config_tree_prefix}/other_files/pleroma_panel.html" /var/lib/pleroma/static/instance/panel.html
+
 # Prepare NGINX config for Pleroma.
 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