add example

This commit is contained in:
stremovsky
2019-12-09 09:00:37 +02:00
parent aca966e220
commit acce247f80
2 changed files with 7 additions and 1 deletions

6
create-test-user.sh Executable file
View 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"}'

View File

@@ -241,7 +241,7 @@ func main() {
masterKey, err = hex.DecodeString(*masterKeyPtr)
} else {
fmt.Println(`Masterkey is missing.`)
fmt.Printf(`Run "./databunker -masterkey key"`)
fmt.Println(`Run "./databunker -masterkey key"`)
os.Exit(0)
}
db.initUserApps()