From f5ef2ef668aee6f32ecfeec18766e5d3934549e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Sun, 6 Mar 2022 21:56:28 -0500 Subject: [PATCH] Use standard location for Drush --- scripts/copy_live_db.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/copy_live_db.sh b/scripts/copy_live_db.sh index 4f8a30b..094b0fc 100755 --- a/scripts/copy_live_db.sh +++ b/scripts/copy_live_db.sh @@ -50,7 +50,7 @@ done if [ "$backup" = "true" ]; then echo "Backing up live database..." live_backup="prod_$(date +%Y%m%dT%H%M%S).sql" - remote_drush="/home/agaric_live/site/vendor/drush/drush/drush -r /home/agaric_Live/site/web $verbose" + remote_drush="/home/agaric_live/site/vendor/bin/drush -r /home/agaric_Live/site/web $verbose" ssh_cmd="$remote_drush sql-dump --gzip --structure-tables-key=common --result-file=~/backups/$live_backup" ssh agaric_live@elizabeth.mayfirst.org $ssh_cmd live_backup="${live_backup}.gz" @@ -81,7 +81,7 @@ if [ "$target" = "local" ]; then fi elif [ "$target" = "test" ]; then - remote_drush="/home/agaric_test/vendor/drush/drush/drush -r /home/agaric_test/site/web $verbose" + remote_drush="/home/agaric_test/vendor/bin/drush -r /home/agaric_test/site/web $verbose" ssh agaric_test@elizabeth.mayfirst.org "${remote_drush} status > /dev/null" || (echo "SSH connection to ${target} or drush status failed - have you set up the key, and does site exist?"; exit 1) ssh_cmd="scp ~/backups/${live_backup} agaric_test@localhost:~/backups" ssh agaric_live@elizabeth.mayfirst.org ${ssh_cmd}