no fallar si no existe /proc/sys/kernel/unprivileged_userns_clone
This commit is contained in:
parent
69e0d7f9c4
commit
2f7d16626b
1 changed files with 1 additions and 1 deletions
2
haini.sh
2
haini.sh
|
@ -21,7 +21,7 @@ if ! test "$HAIN_ENV" && ! type bwrap >/dev/null 2>&1 ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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 "Necesitamos configurar tu sistema, ingresa tu contraseña para correr el comando" >&2
|
||||||
echo "sudo sysctl -a kernel.unprivileged_userns_clone=1" >&2
|
echo "sudo sysctl -a kernel.unprivileged_userns_clone=1" >&2
|
||||||
sudo sysctl -a kernel.unprivileged_userns_clone=1
|
sudo sysctl -a kernel.unprivileged_userns_clone=1
|
||||||
|
|
Loading…
Reference in a new issue