summaryrefslogtreecommitdiffstats
path: root/server/lib/shell.js
diff options
context:
space:
mode:
authorJannik Schönartz2019-03-31 15:50:50 +0200
committerJannik Schönartz2019-03-31 15:50:50 +0200
commit0873cc0b67a5e3103f1efea8f3b6a18b116b0751 (patch)
tree7549966b862e400474c908b86871e17fa2d66961 /server/lib/shell.js
parent[server/clients] add more responses (diff)
downloadbas-0873cc0b67a5e3103f1efea8f3b6a18b116b0751.tar.gz
bas-0873cc0b67a5e3103f1efea8f3b6a18b116b0751.tar.xz
bas-0873cc0b67a5e3103f1efea8f3b6a18b116b0751.zip
[server/registration] Performance improvements & add automatic registration with custom name
Manual registration now sends the client as json idoit: Add server bug fixes shell: Fix building pcbios ipxe version eslint fixes
Diffstat (limited to 'server/lib/shell.js')
-rw-r--r--server/lib/shell.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/lib/shell.js b/server/lib/shell.js
index fd5151f..7265d09 100644
--- a/server/lib/shell.js
+++ b/server/lib/shell.js
@@ -18,7 +18,10 @@ module.exports = {
var makeCmd = ''
// Only one building process can be running.
if (!building[ipxeVersion]) {
- makeCmd = 'make bin-x86_64-efi/snponly.efi EMBED=' + path.join(__appdir, 'ipxe', 'embedded_' + ipxeVersion + '.ipxe') + ' TRUST=' + path.join(__appdir, 'bin', 'fullchain.pem')// + ' bin/undionly.kpxe'
+ makeCmd = 'make '
+ if (ipxeVersion === 'efi') makeCmd += 'bin-x86_64-efi/snponly.efi '
+ makeCmd += 'EMBED=' + path.join(__appdir, 'ipxe', 'embedded_' + ipxeVersion + '.ipxe') + ' TRUST=' + path.join(__appdir, 'bin', 'fullchain.pem')// + ' bin/undionly.kpxe'
+
updateInProgress(ipxeVersion, true)
} else {
res.send({ status: 'ALREADY_BUILDING', error: 'Building ' + ipxeVersion + '-iPXE is already in progress.' })