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
c6660dd9e1
1 changed files with 3 additions and 6 deletions
9
debian/postinst
vendored
9
debian/postinst
vendored
|
@ -48,13 +48,10 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -x /etc/init.d/yunohost-api ]; then
|
# Enable and start yunohost-api service for non-systemd system
|
||||||
|
if [ -x /etc/init.d/yunohost-api ] && [ ! -d /run/systemd/system ]; then
|
||||||
update-rc.d yunohost-api defaults >/dev/null
|
update-rc.d yunohost-api defaults >/dev/null
|
||||||
if [ -d /run/systemd/system ]; then
|
invoke-rc.d yunohost-api start || exit $?
|
||||||
systemctl --system daemon-reload >/dev/null || true
|
|
||||||
else
|
|
||||||
invoke-rc.d yunohost-api start || exit $?
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
Loading…
Add table
Reference in a new issue