Last active
April 10, 2018 18:07
-
-
Save dannylamb/a724c64a02620d71f96088b5cd3e1dd1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# This version displays a warning to the screen about having the password on the command line. | |
# This can be disregarded or use the other script with mysql_config_editor | |
MYSQL_USER="drupal8" | |
MYSQL_PASS="islandora" | |
MYSQL_DB="drupal8" | |
cd /var/www/html/drupal/web | |
/var/www/html/drupal/vendor/bin/drupal module:uninstall islandora_image islandora_collection | |
/var/www/html/drupal/vendor/bin/drupal config:delete active field.field.media.tn.field_height | |
/var/www/html/drupal/vendor/bin/drupal config:delete active field.field.media.tn.field_width | |
/var/www/html/drupal/vendor/bin/drupal config:delete active field.field.media.tn.field_mimetype | |
/var/www/html/drupal/vendor/bin/drupal config:delete active field.field.media.tn.field_image | |
/var/www/html/drupal/vendor/bin/drupal module:uninstall islandora | |
TABLES=$(mysql --database=$MYSQL_DB --user=$MYSQL_USER --password=$MYSQL_PASS --batch -e 'show tables;' | grep -e '^field_deleted_*') | |
if [ ! -z "${TABLES}" ]; then | |
for item in $TABLES; do | |
echo "DROP TABLE $item" | |
`mysql --database=$MYSQL_DB --user=$MYSQL_USER --password=$MYSQL_PASS --batch -e "drop table ${item};"` | |
done | |
else | |
echo "NO field_deleted_* TABLES FOUND." | |
fi | |
cd /var/www/html/drupal/web/modules/contrib/islandora | |
git remote add danny https://github.com/dannylamb/islandora.git | |
git fetch danny | |
git checkout derivatives | |
cd /var/www/html/drupal/web/modules/contrib/islandora_collection | |
git remote add danny https://github.com/dannylamb/islandora_collection.git | |
git fetch danny | |
git checkout derivatives | |
cd /var/www/html/drupal/web/modules/contrib/islandora_image | |
git remote add danny https://github.com/dannylamb/islandora_image.git | |
git fetch danny | |
git checkout derviatives | |
cd ~ | |
git clone -b islandora-connector-houdini https://github.com/dannylamb/Alpaca.git | |
cd Alpaca | |
(./gradlew install; cp islandora-connector-houdini/build/libs/islandora-connector-houdini-0.4.1-SNAPSHOT.jar /opt/karaf/deploy; cd /var/www/html/drupal/web; | |
/var/www/html/drupal/vendor/bin/drush en islandora_image) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment