summaryrefslogtreecommitdiffstats
path: root/htdocs
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
parentd6136cf5bb98c3b52d54f9b0c9042a54169bfb5b (diff)
downloadsmokeping-4ab769579b0aeafd81878ddb332b726c44dc2ffc.tar.gz
smokeping-4ab769579b0aeafd81878ddb332b726c44dc2ffc.tar.xz
improve webserver docu and sample script
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/Makefile.am5
-rwxr-xr-xhtdocs/smokeping.cgi.dist4
-rwxr-xr-xhtdocs/smokeping.fcgi.dist2
3 files changed, 4 insertions, 7 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
diff --git a/htdocs/smokeping.cgi.dist b/htdocs/smokeping.cgi.dist
deleted file mode 100755
index 193e2aa..0000000
--- a/htdocs/smokeping.cgi.dist
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-# maybe add some extra perl search path
-# export PERL5LIB=/opt/rrdtool/lib/perl
-exec /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config
diff --git a/htdocs/smokeping.fcgi.dist b/htdocs/smokeping.fcgi.dist
index 193e2aa..bb3aef8 100755
--- a/htdocs/smokeping.fcgi.dist
+++ b/htdocs/smokeping.fcgi.dist
@@ -1,4 +1,2 @@
#!/bin/sh
-# maybe add some extra perl search path
-# export PERL5LIB=/opt/rrdtool/lib/perl
exec /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config