From 601c7f38d6d178f6a45f2849808c5936d9a9fe43 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 29 May 2006 20:16:07 +0000 Subject: [PATCH] - add trigger for DRUPAL-SA-2006-006 (suggested by blues); rel 3 Changed files: drupal.spec -> 1.61 --- drupal.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drupal.spec b/drupal.spec index 01e1dee..12cbb1a 100644 --- a/drupal.spec +++ b/drupal.spec @@ -4,7 +4,7 @@ Summary: Open source content management platform Summary(pl): Platforma do zarz±dzania tre¶ci± o otwartych ¼ród³ach Name: drupal Version: %{_ver}.%{_patchlevel} -Release: 2 +Release: 3 License: GPL Group: Applications/WWW Source0: http://drupal.org/files/projects/%{name}-%{version}.tar.gz @@ -311,6 +311,18 @@ if [ "$apache_reload" ]; then %service -q apache reload fi +%triggerpostun -- %{name} < 4.6.7-2.6 +grep -c This_is_a_Drupal_security_line_do_not_remove \ +%{_sysconfdir}/apache.conf %{_sysconfdir}/httpd.conf \ +| awk -F: '/:0/{print $1}' | xargs -r \ +sed -i -e ' +//{ + n + a\ SetHandler This_is_a_Drupal_security_line_do_not_remove +}' +[ ! -L /etc/httpd/webapps.d/drupal.conf ] || %service -q httpd reload +[ ! -L /etc/apache/webapps.d/drupal.conf ] || %service -q apache reload + %files %defattr(644,root,root,755) %doc *.txt README.PLD -- 2.44.0