apache2/apache-20-22-upgrade
Cristian Rodríguez c386f992ca Accepting request 179374 from home:elvigia:branches:Apache
- remove After=mysql.service php-fpm.service postgresql.service 
  which were added in the previous change, those must be added
  as Before=apache2.service in the respective services.

- Include mod_systemd for more complete integration with 
  systemd, turn the service to Typé=notify as required
- Disable SSL NPN patch for now, it is required for mod_spdy
  but mod_spdy does not support apache 2.4

- apache 2.4.4 
* fix for CVE-2012-3499
* fix for the CRIME attack (disable ssl compression by default)
* many other bugfies
* build access_compat amd unixd as static modules and solve
 some other upgrade quirks (bnc#813705)

OBS-URL: https://build.opensuse.org/request/show/179374
OBS-URL: https://build.opensuse.org/package/show/Apache/apache2?expand=0&rev=379
2013-06-18 05:57:29 +00:00

76 lines
1.4 KiB
Bash

#!/bin/bash
# obsolete 2.0 modules -> 2.2 modules
echo 'looking for old 2.0 modules to be renamed...'
if a2enmod -q auth; then
echo 'auth -> auth_basic authn_file'
a2dismod auth
a2enmod auth_basic
a2enmod authn_file
a2enmod authz_groupfile
a2enmod authz_default
a2enmod authz_user
cat <<-EOF
!!!ATTENTION!!!
If you use basic authentication, you will need to update your
configuration. Typically, you need to add
AuthBasicProvider file
(example for file-based authentication) below "AuthType Basic".
!!!ATTENTION!!!
EOF
fi
if a2enmod -q access; then
echo 'access -> authz_host'
a2dismod access
a2enmod authz_host
fi
if a2enmod -q auth_dbm; then
echo 'auth_dbm -> authn_dbm'
a2dismod auth_dbm
a2enmod authn_dbm
fi
if a2enmod -q imap; then
echo 'imap -> imagemap'
a2dismod imap
a2enmod imagemap
fi
if a2enmod -q image_map; then
echo 'image_map -> imagemap'
a2dismod image_map
a2enmod imagemap
fi
if a2enmod -q auth_ldap; then
echo 'auth_ldap -> mod_authnz_ldap'
a2dismod auth_ldap
a2enmod mod_authnz_ldap
fi
for module in mod_authn_default mod_authz_default mod_mem_cache authz_default authn_file authn_core; do
if a2enmod -q "$module"; then
echo "!!ATTENTION! $module was removed from apache version 2.4 or later, CHECK YOUR CONFIGURATION!!!"
a2dismod "$module"
fi
done
if [ -x /usr/bin/systemd-notify ] && /usr/bin/systemd-notify --booted && ! a2enmod -q systemd; then
a2enmod systemd
fi
echo 'Done.'