Parse arguments in service_create calls

Refs #64
This commit is contained in:
Jose Diaz-Gonzalez
2016-09-25 15:04:51 -06:00
parent 0a1a0b9a47
commit d4c9a4044f
3 changed files with 6 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ redis-clone-cmd() {
PLUGIN_IMAGE=$(service_version "$SERVICE" | grep -o "^.*:" | sed -r "s/://g")
PLUGIN_IMAGE_VERSION=$(service_version "$SERVICE" | grep -o ":.*$" | sed -r "s/://g")
service_create "$NEW_SERVICE"
service_create "$NEW_SERVICE" "${@:3}"
dokku_log_info1 "Copying data from $SERVICE to $NEW_SERVICE"
service_export "$SERVICE" | service_import "$NEW_SERVICE" > /dev/null 2>&1 || true
dokku_log_info1 "Done"