[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Added script to clear cache from console (#refs 784)

git at icinga.org git at icinga.org
Thu Sep 16 17:42:41 CEST 2010


Module: icinga-web
Branch: jmosshammer/default
Commit: 8a97eeb36c956f27f5d8ba6b10f6589509229235
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=8a97eeb36c956f27f5d8ba6b10f6589509229235

Author: jmosshammer <jmosshammer at ws-jmosshammer.(none)>
Date:   Tue Sep 14 13:46:26 2010 +0200

* Added script to clear cache from console (#refs 784)

---

 bin/clearcache.sh.in |    2 ++
 configure            |    3 ++-
 configure.ac         |    1 +
 etc/make/files.mk    |    3 ++-
 4 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/bin/clearcache.sh.in b/bin/clearcache.sh.in
new file mode 100644
index 0000000..f5e16d3
--- /dev/null
+++ b/bin/clearcache.sh.in
@@ -0,0 +1,2 @@
+rm -rf @prefix@/app/cache/config/*.php
+rm -rf @prefix@/app/cache/content
diff --git a/configure b/configure
index 6a9e0a2..db6c794 100755
--- a/configure
+++ b/configure
@@ -2494,7 +2494,7 @@ CFLAGS=""
 
 
 
-ac_config_files="$ac_config_files Makefile app/config/databases.xml app/config/icinga.xml app/modules/Web/config/icinga-io.xml etc/build.properties etc/tests/test.properties etc/apache2/icinga-web.conf pub/.htaccess pub/soap/.htaccess"
+ac_config_files="$ac_config_files Makefile app/config/databases.xml app/config/icinga.xml app/modules/Web/config/icinga-io.xml etc/build.properties etc/tests/test.properties etc/apache2/icinga-web.conf bin/clearcache.sh pub/.htaccess pub/soap/.htaccess"
 
 
 cat >confcache <<\_ACEOF
@@ -3203,6 +3203,7 @@ do
     "etc/build.properties") CONFIG_FILES="$CONFIG_FILES etc/build.properties" ;;
     "etc/tests/test.properties") CONFIG_FILES="$CONFIG_FILES etc/tests/test.properties" ;;
     "etc/apache2/icinga-web.conf") CONFIG_FILES="$CONFIG_FILES etc/apache2/icinga-web.conf" ;;
+    "bin/clearcache.sh") CONFIG_FILES="$CONFIG_FILES bin/clearcache.sh" ;;
     "pub/.htaccess") CONFIG_FILES="$CONFIG_FILES pub/.htaccess" ;;
     "pub/soap/.htaccess") CONFIG_FILES="$CONFIG_FILES pub/soap/.htaccess" ;;
 
diff --git a/configure.ac b/configure.ac
index 3ecdb04..3c4b2f4 100755
--- a/configure.ac
+++ b/configure.ac
@@ -247,6 +247,7 @@ AC_CONFIG_FILES([
 	etc/build.properties
 	etc/tests/test.properties
 	etc/apache2/icinga-web.conf
+	bin/clearcache.sh
 	pub/.htaccess
 	pub/soap/.htaccess
 ])
diff --git a/etc/make/files.mk b/etc/make/files.mk
index c969acb..69c286b 100755
--- a/etc/make/files.mk
+++ b/etc/make/files.mk
@@ -682,6 +682,7 @@ inc-install-files:
 	$(INSTALL) -m 644 $(INSTALL_OPTS) app/templates/ExtJsViewport.php $(DESTDIR)$(prefix)/app/templates/ExtJsViewport.php
 	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(prefix)/bin
 	$(INSTALL) -m 644 $(INSTALL_OPTS) bin/agavi $(DESTDIR)$(prefix)/bin/agavi
+	$(INSTALL) -m 755 $(INSTALL_OPTS) bin/clearcache.sh $(DESTDIR)$(prefix)/bin/clearcache.sh
 	$(INSTALL) -m 644 $(INSTALL_OPTS) bin/console.php $(DESTDIR)$(prefix)/bin/console.php
 	$(INSTALL) -m 644 $(INSTALL_OPTS) bin/create-changelog.py $(DESTDIR)$(prefix)/bin/create-changelog.py
 	$(INSTALL) -m 644 $(INSTALL_OPTS) bin/create-makefile.sh $(DESTDIR)$(prefix)/bin/create-makefile.sh
@@ -9539,6 +9540,6 @@ inc-install-files:
 	$(INSTALL) -m 644 $(INSTALL_OPTS) pub/styles/icinga.css $(DESTDIR)$(prefix)/pub/styles/icinga.css
 	$(INSTALL) -m 644 $(INSTALL_OPTS) pub/styles/icinga-icons.css $(DESTDIR)$(prefix)/pub/styles/icinga-icons.css
 	$(INSTALL) -m 644 $(INSTALL_OPTS) pub/styles/statusmap.css $(DESTDIR)$(prefix)/pub/styles/statusmap.css
-INC_FILES=8449
+INC_FILES=8450
 INC_DIRS=1089
 # INSTALL_FILES_END





More information about the icinga-checkins mailing list