Ver código fonte

Add timeout command for not very powerful SBCs

Bob Mottram 7 anos atrás
pai
commit
3708790d82
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1
    0
      src/freedombone-app-pleroma

+ 1
- 0
src/freedombone-app-pleroma Ver arquivo

@@ -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