diff --git a/migration.sh b/migration.sh index 77ca636..dfb7ba1 100644 --- a/migration.sh +++ b/migration.sh @@ -44,7 +44,7 @@ send_backup() { create_db() { sed -e "s/DESTINATION_DB_NAME/${DESTINATION_DB_NAME}/" \ -e "s/DESTINATION_POSTGRES_PASSWORD/${DESTINATION_POSTGRES_PASSWORD}/"\ - -e "s/DB_BACKUP/${$DB_BACKUP}/"\ + -e "s/DB_BACKUP/${DB_BACKUP}/"\ create_db.sh.template > create_db.sh sshpass -p "$DESTINATION_DATABASE_PASSWORD" ssh -p $DESTINATION_DATABASE_PORT $DESTINATION_DATABASE_USER@$DESTINATION_DATABASE_IP 'bash -s' < create_db.sh }