Last active
March 4, 2020 22:01
-
-
Save dannylamb/68ecd8b6c17274c792ceadc4ffe50449 to your computer and use it in GitHub Desktop.
Short bash script to make a cloned I8 snapshot yours
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
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