[icinga-checkins] icinga.org: icinga-web/feature/sles-pkg-5094: Enable mod_rewrite in the SLES package.

git at icinga.org git at icinga.org
Mon Nov 18 13:55:37 CET 2013


Module: icinga-web
Branch: feature/sles-pkg-5094
Commit: 03105b6ca6faa607f3347221de8c2d2408dd75e2
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=03105b6ca6faa607f3347221de8c2d2408dd75e2

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Mon Nov 18 12:10:36 2013 +0100

Enable mod_rewrite in the SLES package.

Refs #5094

---

 icinga-web.spec |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/icinga-web.spec b/icinga-web.spec
index 4ad9922..abe8bd1 100644
--- a/icinga-web.spec
+++ b/icinga-web.spec
@@ -214,6 +214,13 @@ fi
 # uncomment if building from git
 # %{__rm} -rf %{buildroot}%{_datadir}/icinga-web/.git
 
+%if "%{_vendor}" == "suse"
+a2enmod rewrite
+if service apache2 status; then
+  service apache2 restart
+fi
+%endif
+
 %preun
 
 %post





More information about the icinga-checkins mailing list