~mafix/mod-ldap-cfg/main

« back to all changes in this revision

Viewing changes to debian/libapache-mod-ldapcfg.postinst

  • Committer: felix
  • Date: 2009-02-23 23:32:28 UTC
  • Revision ID: felix@fixflop-20090223233228-u1p1mmz2qn7yqy55
initial import from http://modldapcfg.bayour.com/ version 1.0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
set -e
 
3
 
 
4
#DEBHELPER#
 
5
 
 
6
case "$1" in
 
7
    configure)
 
8
 
 
9
        if [ -z "$2" ]; then
 
10
            for i in apache apache-perl apache-ssl; do
 
11
                if [ -r /etc/$i/modules.conf ]; then
 
12
                        /usr/sbin/apache-modconf $i enable mod_ldap_cfg
 
13
                fi
 
14
            done
 
15
        fi
 
16
    ;;
 
17
 
 
18
    abort-upgrade|abort-remove|abort-deconfigure)
 
19
    ;;
 
20
 
 
21
    *)
 
22
        echo "$0: didn't understand being called with \`$1'" 1>&2
 
23
        exit 1
 
24
    ;;
 
25
esac
 
26
 
 
27
exit 0
 
28