summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/api/registrations.js4
-rw-r--r--server/ipxe/main.ipxe2
2 files changed, 4 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()
})
})
}
diff --git a/server/ipxe/main.ipxe b/server/ipxe/main.ipxe
index f0e0945..3bb8e86 100644
--- a/server/ipxe/main.ipxe
+++ b/server/ipxe/main.ipxe
@@ -5,4 +5,6 @@ ifopen
set img tftp://10.8.102.124/ipxeWallpaper3_scale.png || shell
console --picture ${img} --x 800 --y 600 || shell
+:loop
chain https://bas.intra.uni-freiburg.de/api/configloader/${uuid}
+goto loop \ No newline at end of file