fixed Debian bug 758070 regarding directory test

This commit is contained in:
Roland Gruber 2014-08-21 19:14:50 +00:00
parent 5259a9e48e
commit 849ffead99
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
ldap-account-manager (4.6.1-1) unstable; urgency=low
* new upstream release
* Fix "symlinks to apache.conf cause dpkg to leave package
uninstalled": changed directory test code (Closes: #758070)
-- Roland Gruber <post@rolandgruber.de> Tue, 15 Jul 2014 20:17:54 +0200

View File

@ -65,7 +65,7 @@ if [ "$1" = "configure" ]; then
test -x /usr/sbin/$server || continue
case "$server" in
apache2)
if [ -d /etc/$server/mods-enabled ]; then
if [ -d /etc/$server/mods-enabled ] && [ -d /etc/$server/mods-available ]; then
if [ ! -f /etc/$server/mods-enabled/actions.load -a ! -h /etc/$server/mods-enabled/actions.load ]; then
ln -s /etc/$server/mods-available/actions.load /etc/$server/mods-enabled/actions.load
fi
@ -89,7 +89,7 @@ if [ "$1" = "configure" ]; then
ln -s /etc/ldap-account-manager/apache.conf /etc/$server/conf.d/ldap-account-manager
restart="$restart $server"
fi
if [ -d /etc/$server/conf-available ]; then
if [ -d /etc/$server/conf-available ] && [ -d /etc/$server/conf-enabled ]; then
if [ ! -e /etc/$server/conf-available/ldap-account-manager ]; then
ln -s /etc/ldap-account-manager/apache.conf /etc/$server/conf-available/ldap-account-manager.conf
fi