summaryrefslogtreecommitdiffstats
path: root/htdocs/Makefile.am
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2011-09-29 13:36:39 +0200
committerTobi Oetiker <tobi@oetiker.ch>2011-09-29 13:36:39 +0200
commit4ab769579b0aeafd81878ddb332b726c44dc2ffc (patch)
tree19bce950fe029dc5a322ac37f3810de2bfabe90f /htdocs/Makefile.am
parentd6136cf5bb98c3b52d54f9b0c9042a54169bfb5b (diff)
downloadsmokeping-4ab769579b0aeafd81878ddb332b726c44dc2ffc.tar.gz
smokeping-4ab769579b0aeafd81878ddb332b726c44dc2ffc.tar.xz
improve webserver docu and sample script
Diffstat (limited to 'htdocs/Makefile.am')
-rw-r--r--htdocs/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/htdocs/Makefile.am b/htdocs/Makefile.am
index 11b69e7..d8c592c 100644
--- a/htdocs/Makefile.am
+++ b/htdocs/Makefile.am
@@ -27,5 +27,8 @@ EXTRA_DIST = $(JS) $(CGI)
jsdir = $(DESTDIR)$(HTDOCSDIR)
nobase_js_DATA = $(JS)
-js_SCRIPTS = $(CGI)
+install-data-local:
+ $(ECHO) "#!/bin/sh" > $(DESTDIR)$(HTDOCSDIR)/smokeping.fcgi.dist
+ $(ECHO) "$(prefix)/bin/smokeping_cgi $(prefix)/etc/config" >> $(DESTDIR)$(HTDOCSDIR)/smokeping.fcgi.dist
+ chmod +x $(DESTDIR)$(HTDOCSDIR)/smokeping.fcgi.dist