Browse Source

Add timeout command for not very powerful SBCs

Bob Mottram 7 years ago
parent
commit
3708790d82
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/freedombone-app-pleroma

+ 1
- 0
src/freedombone-app-pleroma View File

@@ -208,6 +208,7 @@ function pleroma_create_database {
208 208
     run_system_query_postgresql "GRANT ALL ON ALL tables IN SCHEMA public TO pleroma;"
209 209
     run_system_query_postgresql "GRANT ALL ON ALL sequences IN SCHEMA public TO pleroma;"
210 210
     run_system_query_postgresql "CREATE EXTENSION citext;"
211
+    run_system_query_postgresql "set statement_timeout to 20000;"
211 212
 
212 213
     read_config_param "PLEROMA_SECRET_KEY"
213 214
     if [ ${#PLEROMA_SECRET_KEY} -lt 50 ]; then