We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34d0298 commit f26a8e4Copy full SHA for f26a8e4
1 file changed
src/src.go
@@ -356,7 +356,7 @@ func ConfigRootPasswd() {
356
if strings.Contains(args, "-nopasswd") {
357
return
358
}
359
-
+ fmYellow("Setting the root password:", conf.Password)
360
cmd := exec.Command("chpasswd", "-R", "/mnt")
361
stdin, err := cmd.StdinPipe()
362
if err != nil {
@@ -368,8 +368,9 @@ func ConfigRootPasswd() {
368
}()
369
err = cmd.Run()
370
371
- fmt.Println(err)
372
Error("Error setting the password;" + err.Error())
+ } else {
373
+ fmGreen("root password setted successfully!")
374
375
376
0 commit comments