diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@
 ## macOS
 ```
 $ brew install postgres
-$ cabal install tmp-postgres
+$ stack install tmp-postgres
 ```
 
 ## Ubuntu
@@ -27,5 +27,5 @@
 ```
 $ sudo apt-get install postgresql-VERSION
 $ echo "export PATH=$PATH:/usr/lib/postgresql/VERSION/bin/" >> /home/ubuntu/.bashrc
-$ cabal install tmp-postgres
+$ stack install tmp-postgres
 ```
diff --git a/src/Database/Postgres/Temp/Internal.hs b/src/Database/Postgres/Temp/Internal.hs
--- a/src/Database/Postgres/Temp/Internal.hs
+++ b/src/Database/Postgres/Temp/Internal.hs
@@ -133,8 +133,8 @@
   let dataDir = mainDir ++ "/data"
 
   logger InitDB
-  initDBExitCode <- runProcessWith stdOut stdErr "initDB"
-      ("initDB --nosync -E UNICODE -A trust -D " ++ dataDir)
+  initDBExitCode <- runProcessWith stdOut stdErr "initdb"
+      ("initdb --nosync -E UNICODE -A trust -D " ++ dataDir)
   throwIfError InitDBFailed initDBExitCode
 
   logger WriteConfig
diff --git a/tmp-postgres.cabal b/tmp-postgres.cabal
--- a/tmp-postgres.cabal
+++ b/tmp-postgres.cabal
@@ -1,5 +1,5 @@
 name:                tmp-postgres
-version:             0.1.0.6
+version:             0.1.0.7
 synopsis: Start and stop a temporary postgres for testing
 description:
  This module provides functions greating a temporary postgres instance on a random port for testing.
