Skip to content
Snippets Groups Projects
Commit 9b2a06fa authored by Bob Mottram's avatar Bob Mottram
Browse files

Set initial pleroma config

parent b9f76e73
No related branches found
No related tags found
No related merge requests found
......@@ -1309,7 +1309,21 @@ function install_pleroma {
echo $"$PLEROMA_DIR/priv/static/static/config.json file missing"
exit 323689
fi
sed -i 's|"theme":.*|"theme": "base16-summerfruit-dark.css",|g' "$PLEROMA_DIR/priv/static/static/config.json"
{ echo '{';
echo "\"name\": \"$PLEROMA_TITLE\",";
echo '"theme": "mammal",';
echo '"background": "/static/aurora_borealis.jpg",';
echo '"logo": "/static/logo.png",';
echo '"registrationOpen": true,';
echo '"defaultPath": "/main/all",';
echo '"chatDisabled": true,';
echo '"showInstanceSpecificPanel": true,';
echo '"redirectRootNoLogin": "/main/all",';
echo '"redirectRootLogin": "/main/friends",';
echo '"showWhoToFollowPanel": false,';
echo '"media_proxy": true';
echo '}'; } > "$PLEROMA_DIR/priv/static/static/config.json"
if [ "$PLEROMA_BACKGROUND_IMAGE_URL" ]; then
pleroma_set_background_image_from_url $PLEROMA_DIR/priv/static "$PLEROMA_DOMAIN_NAME" "$PLEROMA_BACKGROUND_IMAGE_URL" "$PLEROMA_TITLE"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment