Restore working state

This commit is contained in:
AlexSSD7 2023-08-27 15:53:44 +01:00
commit 3cbe45c420
7 changed files with 55 additions and 34 deletions

View file

@ -141,7 +141,7 @@ func (fm *FileManager) luksOpen(sc *ssh.Client, fullDevPath string) error {
err = sess.Wait()
if err != nil {
return wrapErrWithLog(err, "wait for cryptsetup luksopen cmd to finish", stderrBuf.String())
return utils.WrapErrWithLog(err, "wait for cryptsetup luksopen cmd to finish", stderrBuf.String())
}
lg.Info("LUKS device opened successfully")
@ -279,7 +279,7 @@ create mask = 0664`
err = sess.Wait()
if err != nil {
return wrapErrWithLog(err, "wait for change samba password cmd", stderr.String())
return utils.WrapErrWithLog(err, "wait for change samba password cmd", stderr.String())
}
return nil