From 4ab769579b0aeafd81878ddb332b726c44dc2ffc Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Thu, 29 Sep 2011 11:36:39 +0000 Subject: improve webserver docu and sample script --- htdocs/Makefile.am | 5 ++++- htdocs/smokeping.cgi.dist | 4 ---- htdocs/smokeping.fcgi.dist | 2 -- 3 files changed, 4 insertions(+), 7 deletions(-) delete mode 100755 htdocs/smokeping.cgi.dist (limited to 'htdocs') 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 -- cgit v1.2.3-24-g4f1b