diff --git a/index.js b/index.js index 748b8a9..46778a2 100644 --- a/index.js +++ b/index.js @@ -95,7 +95,14 @@ io.on('connection', async function (socket) { socket.emit('renderinstall', [EULA, images]); } } + // Disable wizard + async function noWizard() { + await fsw.writeFile('/opt/NO_WIZARD', ''); + socket.emit('wizardkilled'); + let cmd = pty.spawn('/usr/bin/pkill', ['node']); + } //// Incoming requests //// socket.on('renderlanding', renderLanding); socket.on('install', install); + socket.on('nowizard', noWizard); }); diff --git a/public/js/index.js b/public/js/index.js index f85acc6..d908e91 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -151,7 +151,26 @@ async function renderDash(info) { $('
').text('System Information'), $('').append(sysinfoTable) ]); - $('#container').append([systemCard, dockerCard]); + let killButton = $('