mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge remote-tracking branch 'origin/unstable' into unstable
This commit is contained in:
commit
81fd0beccd
2 changed files with 13 additions and 2 deletions
9
debian/postinst
vendored
9
debian/postinst
vendored
|
@ -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
6
debian/rules
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue