Skip to content

Commit

Permalink
Merge pull request #17 from EyeSeeTea/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
ifoche committed Oct 29, 2019
2 parents 209c7d0 + 545fbb0 commit 4fffc79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sh text eol=lf
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setuptools.setup(
name="d2_docker",
version="1.0.1",
version="1.0.2",
description="Dockers for DHIS2 instances",
long_description=open("README.md", encoding="utf-8").read(),
keywords=["python"],
Expand Down
6 changes: 1 addition & 5 deletions src/d2_docker/config/dhis2-core-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ run_sql_files() {

find "$base_db_path" -type f | sort | while read path; do
echo "Load SQL: $path"
case "$path" in
*.gz) zcat "$path" | $psql_cmd || true;;
*.dump) cat "$path" | $pgrestore_cmd || true;;
*) cat "$path" | $psql_cmd || true;;
esac
$pgrestore_cmd "$path" || zcat "$path" | $psql_cmd || cat "$path" | $psql_cmd || true
done
}

Expand Down

0 comments on commit 4fffc79

Please sign in to comment.