From c7520c02242121a1a62416be52bfc20556cf04b5 Mon Sep 17 00:00:00 2001 From: kgalli Date: Mon, 1 Sep 2014 17:12:00 +0200 Subject: [PATCH] Add default value for request timeout --- packaging/debian/postinst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/debian/postinst b/packaging/debian/postinst index c60b7b7a71..a0115de4fe 100755 --- a/packaging/debian/postinst +++ b/packaging/debian/postinst @@ -35,6 +35,10 @@ case "$1" in web_concurrency=$(${CLI} config:get WEB_CONCURRENCY || echo "2") ${CLI} config:set WEB_CONCURRENCY=${web_concurrency} + # set web timeout + web_timeout=$(${CLI} config:get WEB_TIMEOUT || echo "15") + ${CLI} config:set WEB_TIMEOUT=${web_timeout} + # set SECRET_TOKEN env variable secret_token=$(${CLI} config:get SECRET_TOKEN || ${CLI} run rake -s secret | tail -1) ${CLI} config:set SECRET_TOKEN="$secret_token"