SHA256
1
0
forked from pool/apache2

- remove /usr/bin/http2 symlink only during apache2 package

uninstall, not upgrade [bsc#1041830]

OBS-URL: https://build.opensuse.org/package/show/Apache/apache2?expand=0&rev=515
This commit is contained in:
Petr Gajdos 2017-06-20 14:12:55 +00:00 committed by Git OBS Bridge
parent b82cb3ba67
commit b3dd51283a
2 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 20 13:57:18 UTC 2017 - pgajdos@suse.com
- remove /usr/bin/http2 symlink only during apache2 package
uninstall, not upgrade [bsc#1041830]
-------------------------------------------------------------------
Mon Jun 19 08:15:40 UTC 2017 - pgajdos@suse.com

View File

@ -1374,11 +1374,14 @@ exit 0
%if 0%{?suse_version} >= 1210
%service_del_preun apache2.target
%endif
for i in %{_sbindir}/httpd \
%{installbuilddir}/config_vars.mk
do
test -L $i && rm $i
done
# removing the symlink in case of uninstall (not upgrade) [bsc#1041830]
if [ $1 -eq 0 ]; then
for i in %{_sbindir}/httpd \
%{installbuilddir}/config_vars.mk
do
test -L $i && rm $i
done
fi
exit 0
%postun