- revive apache-22-24-upgrade [bsc#1134294] (internal)
- added sources + apache-22-24-upgrade OBS-URL: https://build.opensuse.org/package/show/Apache/apache2?expand=0&rev=583
This commit is contained in:
parent
a1754b3358
commit
8a6fb40f40
22
apache-22-24-upgrade
Normal file
22
apache-22-24-upgrade
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# obsolete 2.2 modules -> 2.4 modules
|
||||
|
||||
for module in mod_authn_default mod_authz_default mod_mem_cache authz_default authn_default mem_cache; do
|
||||
if /usr/sbin/a2enmod -q "$module"; then
|
||||
echo "!!ATTENTION! $module was removed from apache version 2.4 or later, CHECK YOUR CONFIGURATION!!!"
|
||||
/usr/sbin/a2dismod "$module"
|
||||
fi
|
||||
done
|
||||
|
||||
if ! /usr/sbin/a2enmod -q authn_core; then
|
||||
/usr/sbin/a2enmod authn_core
|
||||
fi
|
||||
|
||||
if ! /usr/sbin/a2enmod -q authz_core; then
|
||||
/usr/sbin/a2enmod authz_core
|
||||
fi
|
||||
|
||||
if ! /usr/sbin/a2enmod -q log_config; then
|
||||
/usr/sbin/a2enmod log_config
|
||||
fi
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 13 14:31:22 UTC 2019 - pgajdos@suse.com
|
||||
|
||||
- revive apache-22-24-upgrade [bsc#1134294] (internal)
|
||||
- added sources
|
||||
+ apache-22-24-upgrade
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 2 10:26:21 UTC 2019 - pgajdos@suse.com
|
||||
|
||||
|
@ -124,6 +124,7 @@ Source119: apache2-protocols.conf
|
||||
Source130: apache2-vhost.template
|
||||
Source131: apache2-vhost-ssl.template
|
||||
Source140: apache2-check_forensic
|
||||
Source141: apache-22-24-upgrade
|
||||
Source142: start_apache2
|
||||
Source143: apache2-systemd-ask-pass
|
||||
Source144: apache2.service
|
||||
@ -562,6 +563,7 @@ tar -xjf %{SOURCE29} -C %{buildroot}/%{sysconfdir}
|
||||
install -m 644 %{_sourcedir}/apache2-script-helpers %{buildroot}/%{_datadir}/%{name}/script-helpers
|
||||
install -m 744 %{_sourcedir}/start_apache2 %{buildroot}/%{_sbindir}/
|
||||
cp -r deprecated-scripts %{buildroot}/%{_datadir}/%{name}/
|
||||
install -m 755 %{_sourcedir}/apache-22-24-upgrade %{buildroot}/%{_datadir}/%{name}/
|
||||
%if 0%{?suse_version} >= 1210
|
||||
mkdir -p %{buildroot}%{_unitdir}/
|
||||
install -m 700 %{_sourcedir}/apache2-systemd-ask-pass %{buildroot}/%{_sbindir}/
|
||||
@ -861,6 +863,7 @@ rm %{buildroot}/%{sysconfdir}/*.test
|
||||
%{_libdir}/%{name}/mod_*.so
|
||||
%dir %{installbuilddir}
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_datadir}/%{name}/apache-22-24-upgrade
|
||||
%{_datadir}/%{name}/deprecated-scripts
|
||||
%{_datadir}/%{name}/script-helpers
|
||||
%{_datadir}/%{name}/sysconf_addword
|
||||
@ -1448,6 +1451,7 @@ fi
|
||||
exit 0
|
||||
|
||||
%posttrans
|
||||
%{_datadir}/%{name}/apache-22-24-upgrade
|
||||
%apache_restart_if_needed
|
||||
|
||||
%verifyscript
|
||||
|
Loading…
Reference in New Issue
Block a user