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

Additional pleroma configuration changes

parent 1351d72a
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
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