refactor: allow usage of the same variable to disable docker pulls
This commit is contained in:
4
install
4
install
@@ -5,8 +5,8 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
plugin-install() {
|
||||
pull-docker-image() {
|
||||
declare IMAGE="$1"
|
||||
if [[ "$MYSQL_DISABLE_PULL" == "true" ]]; then
|
||||
echo " ! MYSQL_DISABLE_PULL environment variable detected. Not running pull command." 1>&2
|
||||
if [[ "$PLUGIN_DISABLE_PULL" == "true" ]]; then
|
||||
echo " ! ${PLUGIN_DISABLE_PULL_VARIABLE} environment variable detected. Not running pull command." 1>&2
|
||||
echo " ! docker pull ${IMAGE}" 1>&2
|
||||
return
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user