|
|
@ -7,7 +7,7 @@ fi |
|
|
|
|
|
|
|
|
|
|
|
version=0.1 |
|
|
|
usage="$exname [-h|--help] [--force|-f] [DBNAME]" |
|
|
|
usage="$exname [-h|--help] [DBNAME]" |
|
|
|
help=" |
|
|
|
USAGE: |
|
|
|
|
|
|
@ -28,16 +28,12 @@ EXAMPLES: |
|
|
|
|
|
|
|
|
|
|
|
dbname= |
|
|
|
output= |
|
|
|
while [ "$1" ]; do |
|
|
|
case "$1" in |
|
|
|
"--help"|"-h") |
|
|
|
print_help >&2 |
|
|
|
exit 0 |
|
|
|
;; |
|
|
|
"--force"|"-f") |
|
|
|
force=yes |
|
|
|
;; |
|
|
|
--*|-*) |
|
|
|
err "Unexpected optional argument '$1'" |
|
|
|
print_usage >&2 |
|
|
@ -126,7 +122,7 @@ ADMIN_PASSWORD=$(echo "$service_def" | shyaml -q get-value options.admin-passwor |
|
|
|
} |
|
|
|
|
|
|
|
container_network_ip=$(get_healthy_container_ip_for_service "$SERVICE_NAME" 8069 4) || { |
|
|
|
err "Please ensure that $DARKYELLOW$service$NORMAL is running before using '$exname'." |
|
|
|
err "Please ensure that $DARKYELLOW$SERVICE_NAME$NORMAL is running before using '$exname'." |
|
|
|
exit 1 |
|
|
|
} |
|
|
|
|
|
|
|