Skip to content

Commit

Permalink
Preserve service version when clone
Browse files Browse the repository at this point in the history
  • Loading branch information
graf committed May 25, 2016
1 parent cea6c58 commit 6a86efc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions subcommands/clone
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6a86efc

Please sign in to comment.