2 # vim: set ts=2 sw=2 et:
6 # These functions comment out the LoadModule directive in httpd.conf
7 # for apache/apache-ssl. They also ask the user whether to restart
10 src
=/etc
/apache
/httpd.conf
11 dst
=/etc
/apache
/httpd.conf.tmp.$$
13 sed 's/^\(LoadModule.*mod_fastcgi\.so\)/# \1/' $src > $dst
19 src
=/etc
/apache-ssl
/httpd.conf
20 dst
=/etc
/apache-ssl
/httpd.conf.tmp.$$
22 sed 's/^\(LoadModule.*mod_fastcgi\.so\)/# \1/' $src > $dst
28 # These functions ask the user whether to restart apache/apachessl.
30 echo -n "An Apache module has been modified. Restart apache [Y/n]? "
32 if [ ".$CONFIG" != ".n" -a ".$CONFIG" != ".N" ]
34 if [ -x /usr
/sbin
/apachectl
]; then
35 /usr
/sbin
/apachectl restart || true
37 echo 'apachectl not found.'
42 echo -n "An Apache module has been modified. Restart apache-ssl [Y/n]? "
44 if [ ".$CONFIG" != ".n" -a ".$CONFIG" != ".N" ] ; then
45 if [ -x /usr
/sbin
/apache-sslctl
]; then
46 /usr
/sbin
/apache-sslctl restart || true
48 echo 'apache-sslctl not found.'
53 # This script is called twice during the removal of the package; once
54 # after the removal of the package's files from the system, and as
55 # the final step in the removal of this package, after the package's
56 # conffiles have been removed.
60 # This package has been removed, but its configuration has not yet
66 upgrade | deconfigure | failed-upgrade
)
67 # I _think_ I'm right here...let it sit on an upgrade.
71 echo "$0: didn't understand being called with \`$1'" 1>&2