Merge remote-tracking branch 'origin/unstable' into unstable

This commit is contained in:
Weblate 2015-11-15 12:44:37 +01:00
commit 81fd0beccd
2 changed files with 13 additions and 2 deletions

9
debian/postinst vendored
View file

@ -47,6 +47,15 @@ case "$1" in
;;
esac
if [ -x /etc/init.d/yunohost-api ]; then
update-rc.d yunohost-api defaults >/dev/null
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
else
invoke-rc.d yunohost-api start || exit $?
fi
fi
#DEBHELPER#
exit 0

6
debian/rules vendored
View file

@ -8,8 +8,10 @@
dh ${@} --with=python2,systemd
override_dh_installinit:
dh_installinit --name=yunohost-api
dh_installinit --name=yunohost-firewall --no-start
dh_installinit --noscripts
override_dh_systemd_enable:
dh_systemd_enable --name=yunohost-api
override_dh_systemd_start:
dh_systemd_start --restart-after-upgrade yunohost-api.service