Compare commits

...

3 Commits
1.4.8 ... 1.4.9

Author SHA1 Message Date
Jose Diaz-Gonzalez
fc018c65f1 Release 1.4.9 2018-10-11 14:53:12 -04:00
Jose Diaz-Gonzalez
598ea1f526 fix: correct issue where help output isnt colorized by default 2018-10-11 14:20:03 -04:00
Jose Diaz-Gonzalez
b7724b826c fix: correct issues in upgrade and fix tests 2018-10-11 14:16:47 -04:00
6 changed files with 7 additions and 7 deletions

View File

@@ -283,6 +283,7 @@ service_container_rm() {
[[ -z "$ID" ]] && return 0 [[ -z "$ID" ]] && return 0
dokku_log_verbose_quiet "Removing container" dokku_log_verbose_quiet "Removing container"
docker update --restart=no "$SERVICE_NAME" > /dev/null 2>&1
if ! docker rm "$SERVICE_NAME" > /dev/null 2>&1; then if ! docker rm "$SERVICE_NAME" > /dev/null 2>&1; then
dokku_log_fail "Unable to remove container for service $SERVICE" dokku_log_fail "Unable to remove container for service $SERVICE"
fi fi

View File

@@ -142,7 +142,7 @@ fn-help-contents-subcommand() {
fn-help-fancy-tput() { fn-help-fancy-tput() {
declare desc="A wrapper around tput" declare desc="A wrapper around tput"
if [[ -z "$DOKKU_NO_COLOR" ]] || [[ "$TERM" = "unknown" ]] || [[ "$TERM" == "dumb" ]]; then if [[ -n "$DOKKU_NO_COLOR" ]] || [[ "$TERM" = "unknown" ]] || [[ "$TERM" == "dumb" ]]; then
return return
fi fi
@@ -152,7 +152,7 @@ fn-help-fancy-tput() {
fn-help-fancy-color() { fn-help-fancy-color() {
declare desc="A wrapper around colors" declare desc="A wrapper around colors"
if [[ -z "$DOKKU_NO_COLOR" ]] || [[ "$TERM" = "unknown" ]] || [[ "$TERM" == "dumb" ]]; then if [[ -n "$DOKKU_NO_COLOR" ]] || [[ "$TERM" = "unknown" ]] || [[ "$TERM" == "dumb" ]]; then
return return
fi fi

View File

@@ -1,4 +1,4 @@
[plugin] [plugin]
description = "dokku mysql service plugin" description = "dokku mysql service plugin"
version = "1.4.8" version = "1.4.9"
[plugin.config] [plugin.config]

View File

@@ -21,8 +21,6 @@ service-upgrade-cmd() {
verify_service_name "$SERVICE" verify_service_name "$SERVICE"
local SERVICE_ROOT="$PLUGIN_DATA_ROOT/$SERVICE" local SERVICE_ROOT="$PLUGIN_DATA_ROOT/$SERVICE"
local ID="$(cat "$SERVICE_ROOT/ID")"
is_container_status "$ID" "Running" || dokku_log_fail "Service ${SERVICE} container is not running"
service_parse_args "${@:2}" service_parse_args "${@:2}"
@@ -40,6 +38,7 @@ service-upgrade-cmd() {
if [[ "$SERVICE_RESTART_APPS" == "true" ]]; then if [[ "$SERVICE_RESTART_APPS" == "true" ]]; then
dokku_log_info2 "Stopping all linked services" dokku_log_info2 "Stopping all linked services"
for app in $(service_linked_apps "$SERVICE"); do for app in $(service_linked_apps "$SERVICE"); do
[[ "$app" == "-" ]] && continue
ps_stop "$app" ps_stop "$app"
done done
fi fi
@@ -51,6 +50,7 @@ service-upgrade-cmd() {
if [[ "$SERVICE_RESTART_APPS" == "true" ]]; then if [[ "$SERVICE_RESTART_APPS" == "true" ]]; then
dokku_log_info2 "Starting all linked services" dokku_log_info2 "Starting all linked services"
for app in $(service_linked_apps "$SERVICE"); do for app in $(service_linked_apps "$SERVICE"); do
[[ "$app" == "-" ]] && continue
ps_start "$app" ps_start "$app"
done done
fi fi

View File

@@ -52,7 +52,7 @@ teardown() {
check_value="Deploy options: --restart=on-failure:10" check_value="Deploy options: --restart=on-failure:10"
fi fi
options=$(dokku $report_action my_app | xargs) options=$(dokku --quiet $report_action my_app | xargs)
assert_equal "$options" "$check_value" assert_equal "$options" "$check_value"
} }

1
tests/test_helper.bash Normal file → Executable file
View File

@@ -1,5 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export DOKKU_QUIET_OUTPUT=1
export DOKKU_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/dokku" export DOKKU_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/dokku"
export DOKKU_VERSION=${DOKKU_VERSION:-"master"} export DOKKU_VERSION=${DOKKU_VERSION:-"master"}
export PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/bin:$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/dokku:$PATH" export PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/bin:$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/dokku:$PATH"