From e350f8583baafb8fbf89cf2843d84ca5d95cc736 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 16 Oct 2020 15:06:49 +0200 Subject: Commenting out inactive dumps to load --- dumps/.mapping | 12 ++++++------ dumps/load-dumps.sh | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'dumps') diff --git a/dumps/.mapping b/dumps/.mapping index 6a4306d..6bb9d44 100644 --- a/dumps/.mapping +++ b/dumps/.mapping @@ -1,7 +1,7 @@ -dmp202021_e sync/eliga2021.sql +# dmp202021_e sync/eliga2021.sql dmp202021_1n sync/_21_1ligan.sql -dmp202021_1s sync/tel.sql -dmp202021_2ne sync/nerr.sql -dmp202021_2nw sync/20nwrr.sql -dmp202021_2se sync/serrr.sql -dmp202021_2sw sync/2swrr.sql +# dmp202021_1s sync/tel.sql +# dmp202021_2ne sync/nerr.sql +# dmp202021_2nw sync/20nwrr.sql +# dmp202021_2se sync/serrr.sql +# dmp202021_2sw sync/2swrr.sql diff --git a/dumps/load-dumps.sh b/dumps/load-dumps.sh index 28370e6..a94f500 100755 --- a/dumps/load-dumps.sh +++ b/dumps/load-dumps.sh @@ -1,6 +1,6 @@ #!/bin/bash pushd $(dirname $0) >> /dev/null -cat .mapping | while read DB DUMP +grep -v '^#' .mapping | while read DB DUMP do grep -v 'CREATE DATABASE' $DUMP | grep -vi '^Use ' | mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB if [[ $(mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB -N -e "SELECT language FROM params;") == *"english.language"* ]] -- cgit v1.2.3