mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-26 15:02:03 +00:00
support `sudo -i` and `sudo -s`
This commit is contained in:
parent
b9994e52eb
commit
815a3be48b
4
acme.sh
4
acme.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user