mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-10-30 17:37:50 +00:00
add example
This commit is contained in:
6
create-test-user.sh
Executable file
6
create-test-user.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
DATABUNKER_APIKEY='25ae59fb-3859-b807-7420-cdb83e089b42'
|
||||||
|
curl -s http://localhost:3000/v1/user -XPOST "X-Bunker-Token: "$DATABUNKER_APIKEY -H "Content-Type: application/json" -d '{"name":"yul","email":"test@paranoidguy.com"}'
|
||||||
@@ -241,7 +241,7 @@ func main() {
|
|||||||
masterKey, err = hex.DecodeString(*masterKeyPtr)
|
masterKey, err = hex.DecodeString(*masterKeyPtr)
|
||||||
} else {
|
} else {
|
||||||
fmt.Println(`Masterkey is missing.`)
|
fmt.Println(`Masterkey is missing.`)
|
||||||
fmt.Printf(`Run "./databunker -masterkey key"`)
|
fmt.Println(`Run "./databunker -masterkey key"`)
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
db.initUserApps()
|
db.initUserApps()
|
||||||
|
|||||||
Reference in New Issue
Block a user