Skip to content

Instantly share code, notes, and snippets.

@dannylamb
Last active March 4, 2020 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannylamb/68ecd8b6c17274c792ceadc4ffe50449 to your computer and use it in GitHub Desktop.
Save dannylamb/68ecd8b6c17274c792ceadc4ffe50449 to your computer and use it in GitHub Desktop.
Short bash script to make a cloned I8 snapshot yours
grep -RiIl 'PasswordAuthentication no' /etc/ssh/sshd_config | xargs sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g'
service ssh restart
grep -RiIl "$1" /var/www | xargs sed -i "s/$1/$2/g"
grep -RiIl "$1" /opt | xargs sed -i "s/$1/$2/g"
cd /var/www/html/drupal
drush -y cset --input-format=yaml islandora.settings gemini_url "http://$2:80/gemini"
drush -y cset --input-format=yaml islandora_iiif.settings iiif_server "http://$2:8080/cantaloupe/iiif/2"
drush -y cset --input-format=yaml openseadragon.settings iiif_server "http://$2:8080/cantaloupe/iiif/2"
drush cr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment