| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
#DEBHELPER# |
| 6 |
|
| 7 |
if [ "$1" = "configure" ]; then |
| 8 |
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then |
| 9 |
. /usr/share/apache2/apache2-maintscript-helper |
| 10 |
|
| 11 |
# mod_embperl is not thread-safe, requires the prefork MPM |
| 12 |
if [ $(a2query -M) != 'prefork' ] ; then |
| 13 |
if apache2_switch_mpm prefork ; then |
| 14 |
apache2_invoke enmod zembperl |
| 15 |
else |
| 16 |
apache2_msg err "Could not switch to prefork, not enabling mod_embperl (you must use cgi or offline mode to use Embperl)" |
| 17 |
fi |
| 18 |
else |
| 19 |
apache2_invoke enmod zembperl |
| 20 |
fi |
| 21 |
fi |
| 22 |
fi |
| 23 |
|
| 24 |
exit 0 |