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
7
debian/postinst
vendored
7
debian/postinst
vendored
|
@ -48,14 +48,11 @@ case "$1" in
|
|||
;;
|
||||
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
|
||||
if [ -d /run/systemd/system ]; then
|
||||
systemctl --system daemon-reload >/dev/null || true
|
||||
else
|
||||
invoke-rc.d yunohost-api start || exit $?
|
||||
fi
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue