add jessie compatibility in autoscript

This commit is contained in:
Émile Morel 2015-05-07 22:47:34 +02:00
parent 8b89c281ea
commit cc946b0214

View file

@ -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" \