"use strict";
/**
 * penguins-eggs
 * krill modules: change-password.ts
 * author: Piero Proietti
 * email: piero.proietti@gmail.com
 * license: MIT
 * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
 */
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../../lib/utils");
/**
   * changePassword
   * @param name
   * @param newPassword
   */
async function changePassword(name = 'live', newPassword = 'evolution') {
    const cmd = `echo ${name}:${newPassword} | chroot ${this.installTarget} chpasswd ${this.toNull}`;
    await (0, utils_1.exec)(cmd, this.echo);
}
exports.default = changePassword;
