Add default value for request timeout

pull/1775/head
kgalli 10 years ago
parent bca8a9e7f4
commit c7520c0224
  1. 4
      packaging/debian/postinst

@ -35,6 +35,10 @@ case "$1" in
web_concurrency=$(${CLI} config:get WEB_CONCURRENCY || echo "2") web_concurrency=$(${CLI} config:get WEB_CONCURRENCY || echo "2")
${CLI} config:set WEB_CONCURRENCY=${web_concurrency} ${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 # set SECRET_TOKEN env variable
secret_token=$(${CLI} config:get SECRET_TOKEN || ${CLI} run rake -s secret | tail -1) secret_token=$(${CLI} config:get SECRET_TOKEN || ${CLI} run rake -s secret | tail -1)
${CLI} config:set SECRET_TOKEN="$secret_token" ${CLI} config:set SECRET_TOKEN="$secret_token"

Loading…
Cancel
Save