Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LemonLDAP NG
lemonldap-ng
Commits
2c69e9b9
Commit
2c69e9b9
authored
Jul 16, 2021
by
Clément OUDOT
Browse files
Tidy code (
#2562
)
parent
35ae3b9e
Pipeline
#14782
passed with stage
in 13 minutes and 41 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-common/scripts/lemonldap-ng-cli
View file @
2c69e9b9
...
@@ -5,13 +5,12 @@ use strict;
...
@@ -5,13 +5,12 @@ use strict;
use
POSIX
;
use
POSIX
;
use
Getopt::
Long
;
use
Getopt::
Long
;
our
$opt_user
=
'
__APACHEUSER__
';
our
$opt_user
=
'
__APACHEUSER__
';
our
$opt_group
=
'
__APACHEGROUP__
';
our
$opt_group
=
'
__APACHEGROUP__
';
GetOptions
(
GetOptions
(
"
user=s
"
=>
\
$opt_user
,
"
user=s
"
=>
\
$opt_user
,
"
group=s
"
=>
\
$opt_group
"
group=s
"
=>
\
$opt_group
)
)
or
die
("
Error in command line arguments
\n
");
or
die
("
Error in command line arguments
\n
");
my
$action
;
my
$action
;
...
...
lemonldap-ng-manager/scripts/lmConfigEditor
View file @
2c69e9b9
...
@@ -15,14 +15,13 @@ use strict;
...
@@ -15,14 +15,13 @@ use strict;
my
$cli
=
Lemonldap::NG::Manager::Cli::
Lib
->
new
;
my
$cli
=
Lemonldap::NG::Manager::Cli::
Lib
->
new
;
our
$opt_user
=
'
__APACHEUSER__
';
our
$opt_user
=
'
__APACHEUSER__
';
our
$opt_group
=
'
__APACHEGROUP__
';
our
$opt_group
=
'
__APACHEGROUP__
';
GetOptions
(
GetOptions
(
"
user=s
"
=>
\
$opt_user
,
"
user=s
"
=>
\
$opt_user
,
"
group=s
"
=>
\
$opt_group
"
group=s
"
=>
\
$opt_group
)
)
or
die
("
Error in command line arguments
\n
");
or
die
("
Error in command line arguments
\n
");
eval
{
eval
{
setgid
(
(
getgrnam
(
$opt_group
)
)[
2
]
);
setgid
(
(
getgrnam
(
$opt_group
)
)[
2
]
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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