Created
April 24, 2018 13:53
-
-
Save cdoggyd/fde57fa8e55877b14d7f20a99e89ef24 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 | |
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 |
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
drupal-site | |
my-drupal-site | |
another-drupal-site |
Author
cdoggyd
commented
Apr 24, 2018
- Put your own Drupal site(s) in the sites.txt file.
- Give the psa-2018-003.sh script execute permissions (chmod u+x psa-2018-003.sh)
- 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