diff --git a/install_yunohost b/install_yunohost index c5b7270..9e46583 100755 --- a/install_yunohost +++ b/install_yunohost @@ -101,7 +101,7 @@ then if [[ $(grep -c "yunohost.$DOMAIN" /etc/hosts) -eq 0 ]] then bck /etc/hosts "$LEGACY" - cat < $rootfs/etc/hosts + cat < /etc/hosts 127.0.0.1 localhost 127.0.1.1 yunohost.$DOMAIN yunohost @@ -186,12 +186,16 @@ EOF fi #Install yunohost packages - export DEBIAN_FRONTEND=noninteractive + cat < /etc/apt/apt.conf.d/local +Dpkg::Options { + "--force-confdef"; + "--force-confold"; +} +EOF debconf-apt-progress \ --logfile /var/log/yunohost.log \ -- \ - apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \ - -y install \ + apt-get -y install \ yunohost \ yunohost-config \ yunohost-config-postfix \