diff --git a/scripts/cloudron-setup b/scripts/cloudron-setup index 33f799c30..86b5cb193 100755 --- a/scripts/cloudron-setup +++ b/scripts/cloudron-setup @@ -148,6 +148,11 @@ printf "**********************************************************************\n EOF chmod +x /etc/update-motd.d/91-cloudron-install-in-progress +# workaround netcup setting immutable bit. can be removed in 8.0 +if lsattr -l /etc/resolv.conf 2>/dev/null | grep -q Immutable; then + chattr -i /etc/resolv.conf +fi + # Can only write after we have confirmed script has root access echo "Running cloudron-setup with args : $@" > "${LOG_FILE}" diff --git a/scripts/init-ubuntu.sh b/scripts/init-ubuntu.sh index 1c8a9d744..583b98672 100755 --- a/scripts/init-ubuntu.sh +++ b/scripts/init-ubuntu.sh @@ -25,6 +25,12 @@ apt-get -o Dpkg::Options::="--force-confdef" update -y apt-get -o Dpkg::Options::="--force-confdef" upgrade -y apt-mark unhold grub* >/dev/null +# workaround netcup setting immutable bit. can be removed in 8.0 +if lsattr -l /etc/resolv.conf 2>/dev/null | grep -q Immutable; then + echo "==> Fixing up /etc/resolv.conf" + chattr -i /etc/resolv.conf +fi + echo "==> Installing required packages" debconf-set-selections <<< 'mysql-server mysql-server/root_password password password'