Created
October 8, 2019 20:05
-
-
Save careydayrit/69c6864a79bc3b2a5c3fa214c269c03d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set the environment | |
export PANTHEON_SITE_NAME='carey-drupal8' | |
export PANTHEON_ENV='dev' | |
export TERMINUS=~/vendor/pantheon-systems/terminus/bin/terminus | |
# Before updating change to sftp mode | |
$TERMINUS connection:set $PANTHEON_SITE_NAME.$PANTHEON_ENV sftp | |
#update modules | |
for modules in $($TERMINUS composer $PANTHEON_SITE_NAME.$PANTHEON_ENV -- outdated 'drupal/*' | cut -f 1 -d ' '); do | |
if ! echo $modules | grep "notice"; then | |
$TERMINUS composer $PANTHEON_SITE_NAME.$PANTHEON_ENV -- update $modules | |
fi | |
done | |
#update db and clear registry | |
$TERMINUS drush $PANTHEON_SITE_NAME.$PANTHEON_ENV -- updatedb | |
$TERMINUS drush $PANTHEON_SITE_NAME.$PANTHEON_ENV -- cr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment