From 6cc0ca1a46740ce917c0abbfd5d076f3b9cb86f3 Mon Sep 17 00:00:00 2001 From: abeudin Date: Thu, 14 Feb 2013 16:10:56 +0100 Subject: [PATCH] Update install_yunohost --- install_yunohost | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 \