Skip to content

Instantly share code, notes, and snippets.

@cdoggyd
Created April 24, 2018 13:53
Show Gist options
  • Save cdoggyd/fde57fa8e55877b14d7f20a99e89ef24 to your computer and use it in GitHub Desktop.
Save cdoggyd/fde57fa8e55877b14d7f20a99e89ef24 to your computer and use it in GitHub Desktop.
#!/bin/bash
while read site; do
echo -e "Started updating ${site}"
terminus upstream:cc $site
terminus upstream:updates:apply --accept-upstream $site.dev
terminus env:deploy --sync-content --note="Patching PSA-2018-003" --cc -- $site.test
terminus env:deploy --note="Patching PSA-2018-003" --cc -- $site.live
echo -e "Finished updating ${site}\n\n\n"
done <sites.txt
drupal-site
my-drupal-site
another-drupal-site
@cdoggyd
Copy link
Author

cdoggyd commented Apr 24, 2018

  1. Put your own Drupal site(s) in the sites.txt file.
  2. Give the psa-2018-003.sh script execute permissions (chmod u+x psa-2018-003.sh)
  3. Run the script: ./psa-2018-003.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment