summaryrefslogtreecommitdiffstats
path: root/server/lib/shell.js
diff options
context:
space:
mode:
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.' })