forked from vern/scripts
9 lines
296 B
Bash
Executable File
9 lines
296 B
Bash
Executable File
#!/usr/bin/env -S bash -e
|
|
|
|
[[ -z "$2" ]] && {
|
|
printf "Usage: %s username password\n" "$0"
|
|
exit 1
|
|
}
|
|
|
|
curl -XPOST -H "X-Auth-Token: $(</root/priv/minifluxtoken)" -H 'Content-Type: application/json' https://mf.vern.cc/v1/users -d "{\"username\":\"$1\", \"password\": \"$2\", \"is_admin\": false}"
|