diff options
author | emkael <emkael@tlen.pl> | 2020-10-16 15:06:49 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2020-10-16 15:06:49 +0200 |
commit | e350f8583baafb8fbf89cf2843d84ca5d95cc736 (patch) | |
tree | 49e1d496fd8fcde03f8f8e219b113231bc066857 /dumps | |
parent | ac94c7eadc6f84eacc416a8c2d014d4a658a7a78 (diff) |
Commenting out inactive dumps to load
Diffstat (limited to 'dumps')
-rw-r--r-- | dumps/.mapping | 12 | ||||
-rwxr-xr-x | dumps/load-dumps.sh | 2 |
2 files changed, 7 insertions, 7 deletions
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"* ]] |