summaryrefslogtreecommitdiffstats
path: root/server/api
diff options
context:
space:
mode:
authorUdo Walter2018-11-21 18:36:16 +0100
committerUdo Walter2018-11-21 18:36:16 +0100
commitf693b95dde950e4bfcd5f492dc6d54c0cfa1fd8c (patch)
treeb99ac02a76da002775711f98a26437da12a47f9d /server/api
parent[ipxe] Switch to bas.intra domain and fix permission denied call (diff)
downloadbas-f693b95dde950e4bfcd5f492dc6d54c0cfa1fd8c.tar.gz
bas-f693b95dde950e4bfcd5f492dc6d54c0cfa1fd8c.tar.xz
bas-f693b95dde950e4bfcd5f492dc6d54c0cfa1fd8c.zip
[server/registration] remove reboot between ipxe hooks
Diffstat (limited to 'server/api')
-rw-r--r--server/api/registrations.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/api/registrations.js b/server/api/registrations.js
index db58315..3675b59 100644
--- a/server/api/registrations.js
+++ b/server/api/registrations.js
@@ -125,7 +125,7 @@ noAuthRouter.post('/add', (req, res) => {
const name = req.body.name
const parentId = req.body.id
db.client.findOne({ where: { uuid: uuid } }).then(client => {
- if (client) res.status(200).send('#!ipxe\r\necho Client already exists\r\necho Press any key to continue ...\r\nread x\r\nreboot')
+ if (client) res.end()
else {
var groupids = []
if (parentId) groupids = [parentId]
@@ -151,7 +151,7 @@ noAuthRouter.post('/add', (req, res) => {
})
})
- res.send('#!ipxe\r\nreboot')
+ res.end()
})
})
}