Setting title

This commit is contained in:
Bob Mottram 2017-11-06 13:36:51 +00:00
parent 5ae8b62849
commit f449878573
1 changed files with 2 additions and 0 deletions

View File

@ -240,6 +240,8 @@ function pleroma_set_title {
write_config_param "PLEROMA_TITLE" "$PLEROMA_TITLE"
cd /var/www/$PLEROMA_DOMAIN_NAME/htdocs/static
sed -i "s|\"name\":.*|\"name\": \"${PLEROMA_TITLE}\",|g" config.json
sed -i "s|name: .*|name: \"${PLEROMA_TITLE}\",|g" $PLEROMA_DIR/config/config.exs
systemctl restart pleroma
dialog --title $"Set Pleroma title" \
--msgbox $"The title has been set" 6 60
fi