diff --git a/scripts/check-if-installed.sh b/scripts/check-if-installed.sh deleted file mode 100755 index 61f95ec7d29ab8980b71fcfec0212b2a3d7dd565..0000000000000000000000000000000000000000 --- a/scripts/check-if-installed.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -set -exu - -# Change working directory to the drupal code -cd /app - -# Check if Drupal site is installed -echo "Checking if Drupal site is installed" -drush status bootstrap | grep -q Successful - -# Make sure we get a successful response - if [$? -ne 0]; then - echo "Drupal is not installed" >&2 - exit 1 - fi - exit 0 diff --git a/scripts/clear-cache.sh b/scripts/clear-cache.sh deleted file mode 100755 index c25d751627aa9c87f3149eec1422307ffa9ea030..0000000000000000000000000000000000000000 --- a/scripts/clear-cache.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -set -exu - -# Change working directory to the drupal code -cd /app - -# Clean cache -echo "Cleaning cache" -drush cr diff --git a/scripts/clone.sh b/scripts/clone.sh deleted file mode 100755 index 65499ecd9cfc1a44309240ce0b05249f0fcdad1c..0000000000000000000000000000000000000000 --- a/scripts/clone.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -set -exu - -# Change working directory to the drupal code -cd /app - -# Clone data from source to destination -rsync -av /drupal-data-source/ /drupal-data -/scripts/database-restore.sh -/scripts/clear-cache.sh diff --git a/scripts/database-backup.sh b/scripts/database-backup.sh deleted file mode 100755 index 9d2a22045f55e298c23b8c1a1a858202dffa6898..0000000000000000000000000000000000000000 --- a/scripts/database-backup.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -set -exu - -# Change working directory to the drupal code -cd /app - -# Database backup -echo "Database backup" -drush sql-dump > /drupal-data/dbdump.sql diff --git a/scripts/database-restore.sh b/scripts/database-restore.sh deleted file mode 100755 index a067561d8af5711f9d0e7d0b28dba7f60bba5931..0000000000000000000000000000000000000000 --- a/scripts/database-restore.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -set -exu - -# Change working directory to the drupal code -cd /app - -# Database drop -echo "Database drop" -drush sql-drop -y - -# Database restore -echo "Database restore" -`drush sql-connect` < /drupal-data/dbdump.sql diff --git a/scripts/disable-maintenance-mode.sh b/scripts/disable-maintenance-mode.sh deleted file mode 100755 index b13076cb92475d04d526559cbfd071fc6051c2b6..0000000000000000000000000000000000000000 --- a/scripts/disable-maintenance-mode.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -set -exu - -# Change working directory to the drupal code -cd /app - -# Disable maintenance mode -echo "Disabling maintenance mode" -drush state:set system.maintenance_mode 0 --input-format=integer -drush cache:rebuild diff --git a/scripts/enable-maintenance-mode.sh b/scripts/enable-maintenance-mode.sh deleted file mode 100755 index 744fe0f6a2de1c3d143bdb23713824a4c1e8b609..0000000000000000000000000000000000000000 --- a/scripts/enable-maintenance-mode.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -set -exu - -# Change working directory to the drupal code -cd /app - -# Enable maintenance mode -echo "Enabling maintenance mode" -drush state:set system.maintenance_mode 1 --input-format=integer -drush cache:rebuild diff --git a/scripts/site-install.sh b/scripts/site-install.sh deleted file mode 100755 index 8cd6ba6dcfa0756c575596815514774052957d96..0000000000000000000000000000000000000000 --- a/scripts/site-install.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -set -exu - -# Change working directory to the drupal code -cd /app - -# Install Drupal site -echo "Installing Drupal site" -drush site-install -y --config-dir=../config/sync --account-name=admin --account-pass=pass --account-mail=admin@example.com