home · contact · privacy
Improve Pleroma config.
[config] / buster / setup_scripts / setup_pleroma.sh
index cb7725a0fa43f9970243d3c620acd9b10838d9aa..f4d0d43e1e75b64a81f8ae55ce746f28c572a4c4 100755 (executable)
@@ -61,7 +61,15 @@ su pleroma -s $SHELL -lc "./bin/pleroma_ctl migrate"
 # Since the OTP release does not support .secret.exs configuration
 # files, we hack our own alternative by simply appending custom
 # configurations to /etc/config.exs.
-cat "${config_tree_prefix}/other_files/append_pleroma_config" >> /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