From 3f9e7c20881bdfc50653288a74489fbb56f20c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sat, 17 Jun 2017 11:25:47 +0200 Subject: [PATCH] set env vars --- contrib/packager.io/functions | 7 +++++++ contrib/packager.io/postinstall.sh | 2 ++ 2 files changed, 9 insertions(+) diff --git a/contrib/packager.io/functions b/contrib/packager.io/functions index b650fcdc5..00ec34ee1 100644 --- a/contrib/packager.io/functions +++ b/contrib/packager.io/functions @@ -233,6 +233,13 @@ function update_or_install () { fi } +function set_env_vars () { + zammad config:set RUBY_GC_MALLOC_LIMIT=1077216 + zammad config:set RUBY_GC_MALLOC_LIMIT_MAX=2177216 + zammad config:set RUBY_GC_OLDMALLOC_LIMIT=2177216 + zammad config:set RUBY_GC_OLDMALLOC_LIMIT_MAX=3000100 +} + function final_message () { echo -e "####################################################################################" echo -e "\nAdd your fully qualified domain name or public IP to servername directive of" diff --git a/contrib/packager.io/postinstall.sh b/contrib/packager.io/postinstall.sh index 1aea49a3e..726e3cea2 100755 --- a/contrib/packager.io/postinstall.sh +++ b/contrib/packager.io/postinstall.sh @@ -30,6 +30,8 @@ stop_zammad update_or_install +set_env_vars + start_zammad create_webserver_config