X-Git-Url: https://plomlompom.com/repos/?p=config;a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fsetup_pleroma_source.sh;h=c56006f10478662925cba6edc0a52df124b2af15;hp=e60350f78e70b029697ea1d5ddf2c5b5adeaedcc;hb=fe1fbed46501c33df8c129b23cd32b1bf90c8b72;hpb=d0ea846a4695f6d14ee8ae517425f91489e1aa7e diff --git a/buster/setup_scripts/setup_pleroma_source.sh b/buster/setup_scripts/setup_pleroma_source.sh index e60350f..c56006f 100755 --- a/buster/setup_scripts/setup_pleroma_source.sh +++ b/buster/setup_scripts/setup_pleroma_source.sh @@ -74,6 +74,10 @@ mkdir -p /var/lib/pleroma/static/static cp "${config_tree_prefix}/other_files/pleroma_panel.html" /var/lib/pleroma/static/instance/panel.html cp "${config_tree_prefix}/other_files/pleroma_terms-of-service.html" /var/lib/pleroma/static/static/terms-of-service.html +# Upload directory. For some reason this does not exist yet here. +mkdir -p /var/lib/pleroma/uploads +chown pleroma:nogroup /var/lib/pleroma/uploads + # 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}"