[fix] restart yunohost-api on jessie

This commit is contained in:
Adrien Beudin 2015-05-02 05:48:08 -04:00
parent 4c2725df8f
commit 598b3bdc7c

6
debian/postinst vendored
View file

@ -4,4 +4,10 @@ then
ln -s /etc/ssl/certs/ca-yunohost_crt.pem /usr/share/yunohost/admin/ca.crt
fi
chown -R www-data: /usr/share/yunohost/admin
if [ $(lsb_release -c | awk '{print $2}') = jessie ];
then
service yunohost-api stop
fi
service yunohost-api restart