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
815a3be4
Commit
815a3be4
authored
Sep 14, 2019
by
neilpang
Browse files
fix
https://github.com/Neilpang/acme.sh/issues/2478
support `sudo -i` and `sudo -s`
parent
b9994e52
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
815a3be4
...
@@ -6246,8 +6246,8 @@ _checkSudo() {
...
@@ -6246,8 +6246,8 @@ _checkSudo() {
#it's root using sudo, no matter it's using sudo or not, just fine
#it's root using sudo, no matter it's using sudo or not, just fine
return
0
return
0
fi
fi
if
[
"
$SUDO_COMMAND
"
=
"/bin/su"
]
;
then
if
[
"
$SUDO_COMMAND
"
=
"/bin/su"
]
||
[
"
$SUDO_COMMAND
"
=
"/bin/bash"
]
;
then
#it's a normal user doing "sudo su"
#it's a normal user doing "sudo su"
, or `sudo -i` or `sudo -s`
#fine
#fine
return
0
return
0
fi
fi
...
...
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