Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alex Kelly
lemonldap-ng
Commits
6bc4423f
Commit
6bc4423f
authored
Jul 15, 2021
by
Alex Kelly
Browse files
Fixed variable reference
parent
115725da
Pipeline
#14765
passed with stage
in 13 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-common/scripts/lemonldap-ng-cli
View file @
6bc4423f
...
...
@@ -5,8 +5,8 @@ use strict;
use
POSIX
;
use
Getopt::
Long
;
our
$opt_user
=
'
apache
';
our
$opt_group
=
'
apache
';
our
$opt_user
=
'
__APACHEUSER__
';
our
$opt_group
=
'
__APACHEGROUP
';
GetOptions
(
"
user=s
"
=>
\
$opt_user
,
"
group=s
"
=>
\
$opt_group
...
...
@@ -16,8 +16,8 @@ or die("Error in command line arguments\n");
my
$action
;
eval
{
POSIX::
setgid
(
scalar
(
getgrnam
(
'
__APACHEGROUP__
'
)
)
);
POSIX::
setuid
(
scalar
(
getpwnam
(
'
__APACHEUSER__
'
)
)
);
POSIX::
setgid
(
scalar
(
getgrnam
(
$opt_group
)
)
);
POSIX::
setuid
(
scalar
(
getpwnam
(
$opt_user
)
)
);
};
for
(
my
$i
=
0
;
$i
<
@ARGV
;
$i
++
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment