Skip to content

Commit

Permalink
default uri to DRUSH_OPTIONS_URI
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Cairns committed Jan 6, 2025
1 parent 9ff2c35 commit 1783375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
# URI: The URI of the target site. Must be externally dereferenceable, as this
# is likely used to generate externally links, and derivatives and the like.
# ---
# NOTE: URI has no default, and _must_ be provided by all sites.
# NOTE: The uri will defailt to `$DRUSH_OPTIONS_URI`.
#URI=

# ===
Expand Down
3 changes: 2 additions & 1 deletion scripts/util.in
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ function init_vars () {
declare -g DRUSH=${DRUSH:-"$DRUPAL_ROOT/vendor/bin/drush"}
declare -g MIGRATION_GROUP=${MIGRATION_GROUP:?A MIGRATION_GROUP must be specified.}
declare -g WEB_USER=${WEB_USER:-"www-data"}
declare -g URI=${URI:?Missing URI}
declare -g URI=${URI:-$DRUSH_OPTIONS_URI}
URI=${URI:?Missing URI}
declare -g TIME=${TIME:-/usr/bin/time}
declare -g LOG_DIR=${LOG_DIR:-$CONFIG_DIR}
declare -g PROCESSES=${PROCESSES:-1}
Expand Down

0 comments on commit 1783375

Please sign in to comment.