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