Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
996f5337
Commit
996f5337
authored
Nov 13, 2020
by
neilpang
Browse files
fix
https://github.com/acmesh-official/acme.sh/issues/3250
parent
6f55370a
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
996f5337
...
@@ -6649,8 +6649,8 @@ _checkSudo() {
...
@@ -6649,8 +6649,8 @@ _checkSudo() {
return
0
return
0
fi
fi
if
[
-n
"
$SUDO_COMMAND
"
]
;
then
if
[
-n
"
$SUDO_COMMAND
"
]
;
then
#it's a normal user doing "sudo su", or `sudo -i` or `sudo -s`
#it's a normal user doing "sudo su", or `sudo -i` or `sudo -s`
, or `sudo su acmeuser1`
_endswith
"
$SUDO_COMMAND
"
/bin/su
||
grep
"^
$SUDO_COMMAND
\$
"
/etc/shells
>
/dev/null 2>&1
_endswith
"
$SUDO_COMMAND
"
/bin/su
||
_contains
"
$SUDO_COMMAND
"
"/bin/su "
||
grep
"^
$SUDO_COMMAND
\$
"
/etc/shells
>
/dev/null 2>&1
return
$?
return
$?
fi
fi
#otherwise
#otherwise
...
...
Write
Preview
Markdown
is supported
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