Adding default config creation.

This commit is contained in:
stephb9959
2022-02-24 14:38:40 -08:00
parent 087958ed29
commit b1c72b8c28
2 changed files with 11 additions and 0 deletions

View File

@@ -179,6 +179,12 @@ wiredclients() {
jq < ${result_file}
}
signup() {
curl ${FLAGS} -X POST "https://${target_service_endpoint}/api/v1/signup?stephane.bourque@gmail.com&serialNumber=24f5a207a130" \
-H "Content-Type: application/json" > ${result_file}
jq < ${result_file}
}
shopt -s nocasematch
case "$1" in
"login") login; echo "You successfully logged in." ; logout ;;
@@ -192,6 +198,7 @@ case "$1" in
"blink") login; blink "$2" ; logout ;;
"wificlients") login; wificlients "$2" ; logout ;;
"wiredclients") login; wiredclients "$2" ; logout ;;
"signup") signup ;;
*) help ;;
esac