From 2f7d16626ba046400bd780b5088a2af39dbe2783 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 7 Jan 2022 12:02:27 -0300 Subject: [PATCH] no fallar si no existe /proc/sys/kernel/unprivileged_userns_clone --- haini.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haini.sh b/haini.sh index 657843c..27cb7c0 100755 --- a/haini.sh +++ b/haini.sh @@ -21,7 +21,7 @@ if ! test "$HAIN_ENV" && ! type bwrap >/dev/null 2>&1 ; then exit 1 fi -if test "$(sysctl -n kernel.unprivileged_userns_clone)" -ne 1 ; then +if test -f /proc/sys/kernel/unprivileged_userns_clone && test "$(sysctl -n kernel.unprivileged_userns_clone)" -ne 1 ; then echo "Necesitamos configurar tu sistema, ingresa tu contraseƱa para correr el comando" >&2 echo "sudo sysctl -a kernel.unprivileged_userns_clone=1" >&2 sudo sysctl -a kernel.unprivileged_userns_clone=1