Additional pleroma configuration changes

This commit is contained in:
Bob Mottram 2017-11-06 17:06:25 +00:00
parent 1351d72a72
commit f7d5d0c94f
1 changed files with 8 additions and 5 deletions

View File

@ -9,6 +9,7 @@
# Freedom in the Cloud
#
# Pleroma backend application
# https://git.pleroma.social/pleroma/pleroma/wikis/Installing-on-Debian-Based-Distributions
#
# License
# =======
@ -200,11 +201,13 @@ function pleroma_create_database {
sed -i "s|username:.*|username: \"pleroma\",|g" $pleroma_secret
sed -i "s|password:.*|password: \"$PLEROMA_ADMIN_PASSWORD\",|g" $pleroma_secret
sed -i "s|database:.*|database: \"pleroma\",|g" $pleroma_secret
sed -i "/config :pleroma, Pleroma.Web.Endpoint/a url: [host: \"$PLEROMA_DOMAIN_NAME\", scheme: \"https\", port: 443]," $pleroma_secret
sed -i 's|watchers: []|watchers: [],|g' $pleroma_secret
sed -i "/watchers: []/a url: [host: \"$PLEROMA_DOMAIN_NAME\", scheme: \"https\", port: 443]" $pleroma_secret
sed -i 's|url: | url: |g' $pleroma_secret
pleroma_config=config/config.exs
sed -i "s|name: .*|name: \"$PLEROMA_TITLE\",|g" $pleroma_config
sed -i "s|email: .*|email: \"$MY_EMAIL_ADDRESS\",|g" $pleroma_config
#pleroma_config=config/config.exs
#sed -i "s|name: .*|name: \"$PLEROMA_TITLE\",|g" $pleroma_config
#sed -i "s|email: .*|email: \"$MY_EMAIL_ADDRESS\",|g" $pleroma_config
cd $PLEROMA_DIR
chown -R pleroma:pleroma *
@ -518,7 +521,7 @@ function install_elixir {
dpkg -i $erlang_package
apt-get -yq update
apt-get -yq install esl-erlang
apt-get -yq install elixir erlang-xmerl
apt-get -yq install elixir erlang-xmerl erlang-dev erlang-parsetools
if [ ! -f /usr/local/bin/mix ]; then
echo $'/usr/local/bin/mix not found after elixir installation'