Skip to content
Snippets Groups Projects
Verified Commit 7e5b7b87 authored by William Desportes's avatar William Desportes :sailboat:
Browse files

Use the same invoke-rc.d detection as postinst script

parent 1f4c231c
No related branches found
No related tags found
No related merge requests found
Pipeline #628578 passed
......@@ -3,8 +3,9 @@ phpldapadmin (1.2.6.7-1) UNRELEASED; urgency=medium
* New upstream version 1.2.6.7
* Drop patches released upstream
* Refresh PHP 8.2 patch
* Use the same invoke-rc.d detection as postinst script
-- William Desportes <williamdes@wdes.fr> Sun, 21 Jan 2024 10:44:52 +0100
-- William Desportes <williamdes@wdes.fr> Sun, 21 Jan 2024 10:51:59 +0100
phpldapadmin (1.2.6.6-2) unstable; urgency=medium
......
......@@ -42,7 +42,7 @@ case "$1" in
if [ "$res" = "true" ]; then
for webserver in $restart; do
webserver=${webserver%,}
if [ -x /usr/sbin/invoke-rc.d ]; then
if which invoke-rc.d > /dev/null ; then
invoke-rc.d $webserver restart
else
/etc/init.d/$webserver restart
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment