]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docker: Replace tabs with spaces
authorStephen Finucane <stephen@that.guru>
Tue, 17 Apr 2018 08:45:02 +0000 (09:45 +0100)
committerStephen Finucane <stephen@that.guru>
Thu, 26 Apr 2018 09:47:02 +0000 (10:47 +0100)
Maintain your chill, people.

Signed-off-by: Stephen Finucane <stephen@that.guru>
tools/docker/entrypoint.sh

index 7e05f46daffc15e1e97321eeb9ed3d3447b421fe..4a899781f8f5009cd91d4f21826cbdc73fffb823 100755 (executable)
@@ -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