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

Set encryption rounds low for use on low power devices

parent 14f3964e
No related branches found
No related tags found
No related merge requests found
......@@ -234,6 +234,11 @@ function pleroma_create_database {
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
if ! grep -q "pbkdf2_rounds" $pleroma_secret; then
sed -i '/config :logger/a config :comeonin, :pbkdf2_rounds, 1' $pleroma_secret
else
sed -i 's|pbkdf2_rounds.*|pbkdf2_rounds, 1|g' $pleroma_secret
fi
cd $PLEROMA_DIR
chown -R pleroma:pleroma *
......
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