From f676d0329bd3d85756e6cc4b52f5b8936a0880b0 Mon Sep 17 00:00:00 2001 From: ansgarz Date: Tue, 4 Jan 2022 13:30:16 +0100 Subject: [PATCH] [skip ci] improve info for missing sudo --- .../domaindrivenarchitecture/provs/core/platforms/UbuntuProv.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/core/platforms/UbuntuProv.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/core/platforms/UbuntuProv.kt index 160ec1d..86c98f0 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/core/platforms/UbuntuProv.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/core/platforms/UbuntuProv.kt @@ -19,7 +19,7 @@ class UbuntuProv internal constructor( init { val user = cmdNoLog("whoami").out?.trim() 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.") } }