Code

Fixed postrm to remove correct config file
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 5 Dec 2005 06:53:54 +0000 (06:53 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 5 Dec 2005 06:53:54 +0000 (06:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2228 594d385d-05f5-0310-b6e9-bd551577e9d8

debian/gosa.postrm

index ebce790997db61c704762765f4a68e5ab1972f17..331f3adf651ece437146c4d0987e8643d1b3a6ab 100644 (file)
@@ -24,13 +24,14 @@ case "$1" in
        # Adapt server configs
         for server in $servers ; do
                # remove GOsa include
-               includefile=/etc/gosa/apache.conf
+               includefile=/etc/$server/conf.d/gosa.conf
 
                case "$1" in
                        purge)
                                if [ -e /usr/share/wwwconfig-common/apache-uninclude_all.sh ] ; then
                                        . /usr/share/wwwconfig-common/apache-uninclude_all.sh
                                        if [ "$status" = "purge" ] ; then
+                                               [ -L /etc/$server/conf.d/gosa.conf ] && rm /etc/$server/conf.d/gosa.conf
                                                restart="$restart $server"
                                        fi
                                else