misc: add a nerd knob to skip a sysctl during the .deb installation 47/26447/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 9 Apr 2020 12:10:29 +0000 (12:10 +0000)
committerDave Wallace <dwallacelf@gmail.com>
Thu, 9 Apr 2020 15:47:27 +0000 (15:47 +0000)
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 <ayourtch@gmail.com>
src/pkg/debian/vpp.postinst

index 78fcac2..71b4f1b 100644 (file)
@@ -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#