diff options
Diffstat (limited to 'debian/javascript-common.postinst')
| -rw-r--r-- | debian/javascript-common.postinst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/javascript-common.postinst b/debian/javascript-common.postinst index 66283a6..968d4f9 100644 --- a/debian/javascript-common.postinst +++ b/debian/javascript-common.postinst @@ -59,9 +59,13 @@ esac #DEBHELPER# # Will make piupart more happy on upgrades -if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt "9" +if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt-nl "9" then - rmdir --ignore-fail-on-non-empty /etc/apache2/conf.d + # Remove old /etc/apache2/conf.d if empty and not already removed by user: + if [ -d /etc/apache2/conf.d ] + then + rmdir --ignore-fail-on-non-empty /etc/apache2/conf.d + fi # This is a work around bug #584185: if [ -d /etc/javascript-common ] then |
