#!/bin/bash class=org.ngbw.sdk.clients.Client action=create usage() { echo echo "Creates a cipres administrator account. Keep the password private, this account has" echo "a lot of priveleges!" echo echo "Usage: $0 -u -p -e " echo echo "Use 'userDelete account' to delete a user. Be careful, there's no going back. echo exit 1 } if [[ $# < 2 ]] ; then usage fi while [[ $# > 1 ]] do key="$1" shift case $key in -u) username="$1" shift ;; -p) password="$1" shift ;; -e) email="$1" shift ;; -d) action=delete username="$1" *) usage ;; esac done if [[ -z $username || -z $password || -z $email ]] ; then usage fi sdkrun -Dusername=$username -Dpassword=$password -Demail=$email $class