cleaned up some things
This commit is contained in:
@ -143,7 +143,6 @@ Utils.prototype.hasConfiguredCronJob = function (command) {
|
||||
}
|
||||
|
||||
Utils.prototype.updateMainConfigFile = function ({ ssid, autoConfig, autoConfigDelay, sslEnabled, serverPort, wpaEnabled, wpaSecret }) {
|
||||
console.log(this);
|
||||
const outputString = this.serializeMainConfigFile({ ssid, autoConfig, autoConfigDelay, sslEnabled, serverPort, wpaEnabled, wpaSecret });
|
||||
const fileName = '/etc/raspiwifi/raspiwifi.conf'
|
||||
execSync('cat <<EOF >' + fileName + '\n' + outputString)
|
||||
|
||||
@ -111,8 +111,6 @@ const consoleReset = lib.consoleColorCodes.Reset;
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(input_obj)
|
||||
|
||||
//lib.installSystemDependencies();
|
||||
//lib.copyConfigs();
|
||||
lib.updateMainConfigFile({
|
||||
@ -131,9 +129,9 @@ const consoleReset = lib.consoleColorCodes.Reset;
|
||||
let shouldReboot = false;
|
||||
do {
|
||||
inp = readline.question(
|
||||
`${lib.consoleColorCodes.FgRed}
|
||||
Initial setup is complete. A reboot is required to start in WiFi configuration mode...\n
|
||||
Would you like to do that now? [y/N]: ${consoleReset}`,
|
||||
`${lib.consoleColorCodes.FgRed}`+
|
||||
'Initial setup is complete. A reboot is required to start in WiFi configuration mode...\n'+
|
||||
`Would you like to do that now? [y/N]: ${consoleReset}`,
|
||||
{
|
||||
defaultInput: 'n'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user