From: Jakub Bogusz Date: Sun, 29 Dec 2002 01:44:28 +0000 (+0000) Subject: - umask in scripts, other fixes/cosmetics where needed X-Git-Tag: apache-mod_gzip-1_3_26_1a-1~4 X-Git-Url: http://git.pld-linux.org/cgi-bin/gitweb.cgi?p=packages%2Fapache1-mod_gzip.git;a=commitdiff_plain;h=9a269857a9c4cc001988418a31f7ce567dbf1be2 - umask in scripts, other fixes/cosmetics where needed Changed files: apache1-mod_gzip.spec -> 1.16 --- diff --git a/apache1-mod_gzip.spec b/apache1-mod_gzip.spec index a304d65..f45553b 100644 --- a/apache1-mod_gzip.spec +++ b/apache1-mod_gzip.spec @@ -18,6 +18,8 @@ BuildRequires: %{apxs} BuildRequires: apache(EAPI)-devel BuildRequires: zlib-devel Requires(post,preun): %{apxs} +Requires(post,preun): grep +Requires(preun): fileutils Requires: apache(EAPI) BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -64,6 +66,7 @@ fi %preun if [ "$1" = "0" ]; then %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2 + umask 027 grep -v "^Include.*mod_gzip.conf" /etc/httpd/httpd.conf > \ /etc/httpd/httpd.conf.tmp mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf