diff options
-rwxr-xr-x | dumps/load-dumps.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dumps/load-dumps.sh b/dumps/load-dumps.sh index 7695a40..28370e6 100755 --- a/dumps/load-dumps.sh +++ b/dumps/load-dumps.sh @@ -3,11 +3,11 @@ pushd $(dirname $0) >> /dev/null cat .mapping | while read DB DUMP do grep -v 'CREATE DATABASE' $DUMP | grep -vi '^Use ' | mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB - if [ "$DB" != "dmp202021_e" ] + if [[ $(mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB -N -e "SELECT language FROM params;") == *"english.language"* ]] then - <logoh.sql mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB - else <logoh.en.sql mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB + else + <logoh.sql mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB fi cat .queries | while read -r QUERY do |