From a99e4d337bee2ab064af909b43011951db310c9d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 14 Dec 2018 16:42:24 +0200 Subject: fix perl path for centos 7 --- index.cgi | 2 +- index.fcgi | 31 +++++++++++++++++++++++++++++++ index.fpl | 31 ------------------------------- 3 files changed, 32 insertions(+), 32 deletions(-) create mode 100755 index.fcgi delete mode 100755 index.fpl diff --git a/index.cgi b/index.cgi index 18fb0d4..8441c3e 100755 --- a/index.cgi +++ b/index.cgi @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl +#!/usr/bin/perl # Xerl (c) 2005-2011, 2013-2015, 2017-2018 by Paul Buetow # diff --git a/index.fcgi b/index.fcgi new file mode 100755 index 0000000..d21ae1c --- /dev/null +++ b/index.fcgi @@ -0,0 +1,31 @@ +#!/usr/bin/perl + +# Xerl (c) 2005-2011, 2013-2015 by Paul Buetow +# +# E-Mail: xerl@dev.buetow.org WWW: http://xerl.buetow.org +# +# This is free software, you may use it and distribute it under the same +# terms as Perl itself. + +use strict; +use warnings; + +use v5.14.0; +use lib qw(.); + +use Xerl; + +use FCGI; +use Socket; +use Sys::Hostname; + +my $host = hostname(); +my $config = + -e "xerldev.conf" + ? "xerldev.conf" + : ( -e "xerl-$host.conf" ? "xerl-$host.conf" : 'config.conf' ); + +while ( FCGI::accept >= 0 ) { + my $xerl = Xerl->new( config => $config ); + $xerl->run(); +} diff --git a/index.fpl b/index.fpl deleted file mode 100755 index d21ae1c..0000000 --- a/index.fpl +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/perl - -# Xerl (c) 2005-2011, 2013-2015 by Paul Buetow -# -# E-Mail: xerl@dev.buetow.org WWW: http://xerl.buetow.org -# -# This is free software, you may use it and distribute it under the same -# terms as Perl itself. - -use strict; -use warnings; - -use v5.14.0; -use lib qw(.); - -use Xerl; - -use FCGI; -use Socket; -use Sys::Hostname; - -my $host = hostname(); -my $config = - -e "xerldev.conf" - ? "xerldev.conf" - : ( -e "xerl-$host.conf" ? "xerl-$host.conf" : 'config.conf' ); - -while ( FCGI::accept >= 0 ) { - my $xerl = Xerl->new( config => $config ); - $xerl->run(); -} -- cgit v1.2.3