updated on Mon Jan 23 04:00:55 UTC 2012
[aur-mirror.git] / mod_hosts_access / mod_hosts_access.install
blob66f275a37e811767a00fd8d31de874e96339f64e
1 # arg 1:  the new package version
2 post_install() {
3   cat << EOM
5 For mod_hosts_access:
6 --> Add the following line to the modules section of your apache config
7    LoadModule hosts_access_module modules/mod_hosts_access.so
8 --> By default mod_hosts_access does no access checking. Enable
9     hosts_access checking by adding the line
10    HostsAccess On
11     to your configuration. This line can be placed anywhere the deny
12     and allow directives may be used, e.g. in the <Directory /> block
13     or in a .htaccess file if AllowOverride Limit has been set.
14 --> hosts_access checking can be disabled by adding the line
15    HostsAccess Off
16     to your configuration.
17 --> The deny and allow directives can be used at the same time as
18     the HostsAcces directive; any request will have to pass both access
19     checks to be allowed in.
21 EOM
22   /bin/true
25 # arg 1:  the new package version
26 # arg 2:  the old package version
27 post_upgrade() {
28   post_install $i
31 op=$1
32 shift
33 $op $*