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