From 1a7e1befd376bec564e397fa90f55adc38a21e98 Mon Sep 17 00:00:00 2001 From: pitchum Date: Mon, 3 Dec 2018 22:10:01 +0100 Subject: [PATCH] Make sure a recent kernel is running before installing. Biboumi requires to be able to listen on port 113 without being run as root. This is possible thanks to linux capabilities but it requires a recent version of systemd and a recent kernel. Testing with kernel 3.16 failed for me. https://lab.louiz.org/louiz/biboumi/blob/8.3/doc/biboumi.1.rst#identd-port --- scripts/install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install b/scripts/install index fb9caa0..58da8ba 100755 --- a/scripts/install +++ b/scripts/install @@ -28,6 +28,11 @@ app=$YNH_APP_INSTANCE_NAME domain=$YNH_APP_ARG_DOMAIN admin=$YNH_APP_ARG_ADMIN +if dpkg --compare-versions "$(uname -r)" "<=" "4.0" +then + ynh_die "Upgrade your kernel first. Unsupported version: $(uname -r)" +fi + #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #=================================================