Commit 51de4523 authored by Yadd's avatar Yadd
Browse files

Fix FastCGI start problems

parent fb21d874
...@@ -33,6 +33,7 @@ override_dh_auto_install: ...@@ -33,6 +33,7 @@ override_dh_auto_install:
LMPREFIX=/usr/share/lemonldap-ng/ \ LMPREFIX=/usr/share/lemonldap-ng/ \
BINDIR=$(LMSHAREDIR)/bin/ \ BINDIR=$(LMSHAREDIR)/bin/ \
SBINDIR=/usr/sbin \ SBINDIR=/usr/sbin \
FASTCGISOCKDIR=/var/run/llng-fastcgi-server \
DOCUMENTROOT=$(LMVARDIR) \ DOCUMENTROOT=$(LMVARDIR) \
EXAMPLESDIR=/examples/ \ EXAMPLESDIR=/examples/ \
HANDLERDIR=$(LMVARDIR)/handler/ \ HANDLERDIR=$(LMVARDIR)/handler/ \
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
.\" ======================================================================== .\" ========================================================================
.\" .\"
.IX Title "llng-fastcgi-server 1" .IX Title "llng-fastcgi-server 1"
.TH llng-fastcgi-server 1 "2016-02-15" "perl v5.22.1" "User Contributed Perl Documentation" .TH llng-fastcgi-server 1 "2016-02-16" "perl v5.22.1" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents. .\" way too many mistakes in technical documents.
.if n .ad l .if n .ad l
......
...@@ -20,7 +20,7 @@ $opts{g} ||= $ENV{GROUP}; ...@@ -20,7 +20,7 @@ $opts{g} ||= $ENV{GROUP};
if ( $opts{g} ) { if ( $opts{g} ) {
my $grp = getgrnam( $opts{g} ) or warn "Can't change uid to $opts{g}"; my $grp = getgrnam( $opts{g} ) or warn "Can't change uid to $opts{g}";
POSIX::setuid($grp); POSIX::setgid($grp);
} }
if ( $opts{u} ) { if ( $opts{u} ) {
......
...@@ -356,6 +356,7 @@ rm -rf %{buildroot} ...@@ -356,6 +356,7 @@ rm -rf %{buildroot}
PREFIX=%{lm_prefix} \ PREFIX=%{lm_prefix} \
BINDIR=%{lm_sharedir}/bin \ BINDIR=%{lm_sharedir}/bin \
SBINDIR=%{lm_sharedir}/sbin \ SBINDIR=%{lm_sharedir}/sbin \
FASTCGISOCKDIR=/var/run/llng-fastcgi-server \
DOCUMENTROOT=%{lm_vardir} \ DOCUMENTROOT=%{lm_vardir} \
EXAMPLESDIR=%{lm_examplesdir} \ EXAMPLESDIR=%{lm_examplesdir} \
HANDLERDIR=%{lm_vardir}/handler \ HANDLERDIR=%{lm_vardir}/handler \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment