From cc946b0214838bdc6bc0b3495ae0172221c957a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20Morel?= Date: Thu, 7 May 2015 22:47:34 +0200 Subject: [PATCH] add jessie compatibility in autoscript --- autoinstall_yunohostv2 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/autoinstall_yunohostv2 b/autoinstall_yunohostv2 index 12f31fc..0b077e6 100755 --- a/autoinstall_yunohostv2 +++ b/autoinstall_yunohostv2 @@ -41,6 +41,12 @@ do fi done +# Fix install on jessie +if [ $(lsb_release -c | awk '{print $2}') = jessie ]; +then + apt-get install python-xmpp -y +fi + if [[ ! -f /etc/yunohost/yunohost.conf ]] then mkdir /etc/yunohost/ @@ -118,7 +124,12 @@ then echo "Installation" #add answer in debconf db - debconf-set-selections debconfv2 + if [ $(lsb_release -c | awk '{print $2}') = jessie ]; + then + debconf-set-selections $DIR/debconfjessie + else + debconf-set-selections $DIR/debconfv2 + fi #Install yunohost packages apt-get -o Dpkg::Options::="--force-confold" \