Skip to content

Commit

Permalink
Item1894: Debian lintian: maintainer-script-calls-init-script-directl…
Browse files Browse the repository at this point in the history
…y patch by DrakeDiedrich

git-svn-id: http://svn.foswiki.org/trunk@4771 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Sep 5, 2009
1 parent 73449e9 commit bc6e584
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion core/tools/pkg/debian/postinst
Expand Up @@ -191,7 +191,11 @@ case "$1" in
for server in $servers; do
if [ -e /etc/init.d/$server ]; then
echo reloading $server config
/etc/init.d/$server reload
if which invoke-rc.d >/dev/null 2>&1 ; then
invoke-rc.d $server reload
else
/etc/init.d/$server reload
fi
fi
done

Expand Down
6 changes: 5 additions & 1 deletion core/tools/pkg/debian/postrm
Expand Up @@ -32,7 +32,11 @@ if [ "$1" = "remove" ]; then
# reload apache configs
for server in $servers; do
if [ -e /etc/init.d/$server ]; then
/etc/init.d/$server reload
if which invoke-rc.d >/dev/null 2>&1 ; then
invoke-rc.d $server reload
else
/etc/init.d/$server reload
fi
fi
done
fi
Expand Down

0 comments on commit bc6e584

Please sign in to comment.