diff options
author | Stephen Finucane <stephen@that.guru> | 2018-04-17 09:45:02 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2018-04-26 10:47:02 +0100 |
commit | da3ff5426c44e1a976783430ce12b081ef51b736 (patch) | |
tree | 8ba82342f80b40b4e0720368ff1ed04be3327a66 | |
parent | e5972163a37c917c64b1d4f298b1de669328664d (diff) | |
download | patchwork-da3ff5426c44e1a976783430ce12b081ef51b736.tar patchwork-da3ff5426c44e1a976783430ce12b081ef51b736.tar.gz |
docker: Replace tabs with spaces
Maintain your chill, people.
Signed-off-by: Stephen Finucane <stephen@that.guru>
-rwxr-xr-x | tools/docker/entrypoint.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/docker/entrypoint.sh b/tools/docker/entrypoint.sh index 7e05f46..4a89978 100755 --- a/tools/docker/entrypoint.sh +++ b/tools/docker/entrypoint.sh @@ -7,17 +7,17 @@ PW_TEST_DB_TYPE=${PW_TEST_DB_TYPE:-mysql} test_db_connection() { if [ ${PW_TEST_DB_TYPE} = "postgres" ]; then - echo ';' | psql -h $PW_TEST_DB_HOST -U postgres 2> /dev/null > /dev/null + echo ';' | psql -h $PW_TEST_DB_HOST -U postgres 2> /dev/null > /dev/null else - mysqladmin -h $PW_TEST_DB_HOST -u patchwork --password=password ping > /dev/null 2> /dev/null + mysqladmin -h $PW_TEST_DB_HOST -u patchwork --password=password ping > /dev/null 2> /dev/null fi } test_database() { if [ ${PW_TEST_DB_TYPE} = "postgres" ]; then - echo ';' | psql -h $PW_TEST_DB_HOST -U postgres patchwork 2> /dev/null + echo ';' | psql -h $PW_TEST_DB_HOST -U postgres patchwork 2> /dev/null else - echo ';' | mysql -h $PW_TEST_DB_HOST -u patchwork -ppassword patchwork 2> /dev/null + echo ';' | mysql -h $PW_TEST_DB_HOST -u patchwork -ppassword patchwork 2> /dev/null fi } @@ -40,9 +40,9 @@ EOF reset_data() { if [ x${PW_TEST_DB_TYPE} = x"postgres" ]; then - reset_data_postgres + reset_data_postgres else - reset_data_mysql + reset_data_mysql fi # load initial data |