From 6a86efcd5de31613fb88544eedc0c3c716b98d38 Mon Sep 17 00:00:00 2001 From: Pavel Abolmasov Date: Wed, 25 May 2016 12:29:14 +0400 Subject: [PATCH] Preserve service version when clone --- subcommands/clone | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subcommands/clone b/subcommands/clone index 8b6fe93..2a4ef31 100755 --- a/subcommands/clone +++ b/subcommands/clone @@ -12,6 +12,9 @@ postgres-clone-cmd() { [[ -z "$SERVICE" ]] && dokku_log_fail "Please specify a name for the service" [[ -z "$NEW_SERVICE" ]] && dokku_log_fail "Please specify a name for the new service" + PLUGIN_IMAGE=$(service_version "$SERVICE" | grep -o "^.*:" | sed -r "s/://g") + PLUGIN_IMAGE_VERSION=$(service_version "$SERVICE" | grep -o ":.*$" | sed -r "s/://g") + verify_service_name "$SERVICE" service_create "$NEW_SERVICE" dokku_log_info1 "Copying data from $SERVICE to $NEW_SERVICE"