[skip ci] improve info for missing sudo
This commit is contained in:
parent
f5cc40c696
commit
f676d0329b
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class UbuntuProv internal constructor(
|
||||||
init {
|
init {
|
||||||
val user = cmdNoLog("whoami").out?.trim()
|
val user = cmdNoLog("whoami").out?.trim()
|
||||||
if ("root" != user && !cmdNoLog("timeout 1 sudo id").success) {
|
if ("root" != user && !cmdNoLog("timeout 1 sudo id").success) {
|
||||||
println("!!!!!!!!!! WARNING !!!!!!!!!!\nUser $user cannot sudo without entering a password, i.e. most functions may fail!\nPlease ensure $user can sudo without password.")
|
println("IMPORTANT INFO:\nUser $user cannot sudo without entering a password, i.e. some functions may fail!\nIf you need to run functions with sudo, please ensure $user can sudo without password.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue