From 18a7817e22f323300a01e2c754317e706f114e76 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 20 Jul 2017 19:37:14 +0200 Subject: [PATCH] Make /etc/resolv.conf mutable (#43) --- install_yunohost | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install_yunohost b/install_yunohost index 110676b..f3299d2 100755 --- a/install_yunohost +++ b/install_yunohost @@ -278,6 +278,10 @@ install_yunohost_packages() { # Allow sudo removal even if no root password has been set (on some DO # droplet or Vagrant virtual machines), as YunoHost use sudo-ldap export SUDO_FORCE_REMOVE=yes + + # On some machines (e.g. OVH VPS), the /etc/resolv.conf is immutable + # We need to make it mutable for the resolvconf dependency to be installed + chattr -i /etc/resolv.conf 2>/dev/null || true # Install YunoHost apt_get_wrapper \