Skip to content

Commit

Permalink
Give more information if setting the password fails
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Theile <[email protected]>
  • Loading branch information
votdev committed Oct 25, 2024
1 parent 8209e99 commit 0508cb5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ class User {
$tmpFile->write(sprintf("%s:%s", $this->getName(), $password));
$cmd = new \OMV\System\Process("chpasswd");
$cmd->setInputFromFile($tmpFile->getFilename());
$cmd->setRedirect2to1();
$cmd->execute();
}

Expand Down

0 comments on commit 0508cb5

Please sign in to comment.