diff options
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/postinst-doc-base | 4 | ||||
-rw-r--r-- | autoscripts/prerm-doc-base | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/autoscripts/postinst-doc-base b/autoscripts/postinst-doc-base index a53ed7bf..fce4d17e 100644 --- a/autoscripts/postinst-doc-base +++ b/autoscripts/postinst-doc-base @@ -1,3 +1,3 @@ -if command -v install-docs >/dev/null 2>&1; then - install-docs -i /usr/share/doc-base/#PACKAGE# +if [ "$1" = configure ] && command -v install-docs >/dev/null 2>&1; then + install-docs -i /usr/share/doc-base/#DOC-ID# fi diff --git a/autoscripts/prerm-doc-base b/autoscripts/prerm-doc-base index 339361a5..d2b07ebc 100644 --- a/autoscripts/prerm-doc-base +++ b/autoscripts/prerm-doc-base @@ -1,3 +1,4 @@ -if command -v install-docs >/dev/null 2>&1; then - install-docs -r #PACKAGE# +if [ "$1" = remove -o "$1" = upgrade ] && \ + command -v install-docs >/dev/null 2>&1; then + install-docs -r #DOC-ID# fi |