Set encryption rounds low for use on low power devices
This commit is contained in:
parent
14f3964eae
commit
537248dbd7
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue