From 3708790d827a14716e18ca8d08e330e674319502 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 7 Nov 2017 19:48:19 +0000 Subject: [PATCH] Add timeout command for not very powerful SBCs --- src/freedombone-app-pleroma | 1 + 1 file changed, 1 insertion(+) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index 58195c84..6637ba21 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -208,6 +208,7 @@ function pleroma_create_database { run_system_query_postgresql "GRANT ALL ON ALL tables IN SCHEMA public TO pleroma;" run_system_query_postgresql "GRANT ALL ON ALL sequences IN SCHEMA public TO pleroma;" run_system_query_postgresql "CREATE EXTENSION citext;" + run_system_query_postgresql "set statement_timeout to 20000;" read_config_param "PLEROMA_SECRET_KEY" if [ ${#PLEROMA_SECRET_KEY} -lt 50 ]; then