From f63a1926623a6e36756aae3ed33fca41ee7bc06f Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 13 Jul 2017 22:05:41 +0200 Subject: [PATCH] Make /etc/resolv.conf mutable --- 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 \