From: Andrew Yourtchenko Date: Thu, 9 Apr 2020 12:10:29 +0000 (+0000) Subject: misc: add a nerd knob to skip a sysctl during the .deb installation X-Git-Tag: v20.09-rc0~237 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=f8f88eff66d8584eca8c570c22967c3d85fce020 misc: add a nerd knob to skip a sysctl during the .deb installation In some cases, e.g. in the container installs, it's beneficial to skip the sysctl portion of the installation. This commit allows to do that by setting the environment variable VPP_INSTALL_SKIP_SYSCTL. Change-Id: If88468c5c45bf122e927f09e08560e25b73bf1f9 Type: feature Signed-off-by: Andrew Yourtchenko --- diff --git a/src/pkg/debian/vpp.postinst b/src/pkg/debian/vpp.postinst index 78fcac226a8..71b4f1b2c58 100644 --- a/src/pkg/debian/vpp.postinst +++ b/src/pkg/debian/vpp.postinst @@ -1,7 +1,11 @@ #!/bin/sh -e # try to set the required values now. This may or may not work. -sysctl --system +# Allow for a nerd knob to skip this, e.g. during the container installs +if [ -z "${VPP_INSTALL_SKIP_SYSCTL}" ] +then + sysctl --system +fi #DEBHELPER#