neilpang 1 month ago
parent
commit
815a3be48b
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      acme.sh

+ 2
- 2
acme.sh View File

@@ -6246,8 +6246,8 @@ _checkSudo() {
6246 6246
       #it's root using sudo, no matter it's using sudo or not, just fine
6247 6247
       return 0
6248 6248
     fi
6249
-    if [ "$SUDO_COMMAND" = "/bin/su" ]; then
6250
-      #it's a normal user doing "sudo su"
6249
+    if [ "$SUDO_COMMAND" = "/bin/su" ] || [ "$SUDO_COMMAND" = "/bin/bash" ]; then
6250
+      #it's a normal user doing "sudo su", or `sudo -i` or `sudo -s`
6251 6251
       #fine
6252 6252
       return 0
6253 6253
     fi

Loading…
Cancel
Save