summaryrefslogtreecommitdiffstats
path: root/src/pkg/debian/vpp.postinst
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2020-04-09 12:10:29 +0000
committerDave Wallace <dwallacelf@gmail.com>2020-04-09 15:47:27 +0000
commitf8f88eff66d8584eca8c570c22967c3d85fce020 (patch)
treee4050ece2d9c4813d1dfd9769d5282cca739bb6b /src/pkg/debian/vpp.postinst
parent92bbfc297c1e01037eb80a24bb42f8fe54e8a9b1 (diff)
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 <ayourtch@gmail.com>
Diffstat (limited to 'src/pkg/debian/vpp.postinst')
-rw-r--r--src/pkg/debian/vpp.postinst6
1 files changed, 5 insertions, 1 deletions
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#