refactor: allow usage of the same variable to disable docker pulls

This commit is contained in:
Jose Diaz-Gonzalez
2018-04-23 06:56:36 -04:00
parent ae7ad0d41d
commit 58557dcd91
3 changed files with 6 additions and 4 deletions

View File

@@ -30,8 +30,8 @@ service_create() {
service_parse_args "${@:2}"
if ! docker images | grep -e "^$PLUGIN_IMAGE " | grep -q " $PLUGIN_IMAGE_VERSION " ; then
if [[ "$MONGO_DISABLE_PULL" == "true" ]]; then
dokku_log_warn "MONGO_DISABLE_PULL environment variable detected. Not running pull command." 1>&2
if [[ "$PLUGIN_DISABLE_PULL" == "true" ]]; then
dokku_log_warn "${PLUGIN_DISABLE_PULL_VARIABLE} environment variable detected. Not running pull command." 1>&2
dokku_log_warn " docker pull ${IMAGE}" 1>&2
dokku_log_warn "$PLUGIN_SERVICE service creation failed"
exit 1