diff --git a/postgres_setup.sh b/postgres_setup.sh
index 916d857ae4f81ead9bc387c92ddbd82b2e0f8374..efbc65e46b63506b6dcdd766c119740e72ac2c70 100755
--- a/postgres_setup.sh
+++ b/postgres_setup.sh
@@ -5,8 +5,8 @@ printf ":5432::$USER:1qaz2wsx\nlocalhost:5432:*:$USER:1qaz2wsx\n127.0.0.1:5432:*
 chmod og-rw $HOME/.pgpass
 
 #Allow remote access to PostGres
-sudo su -c "printf \"\nhost \t all \t all \t 127.0.0.1/16 \t md5\nhostssl  all \t all \t 127.0.0.1/16 \t md5\n\" >> /etc/postgresql/9.1/main/pg_hba.conf"
-printf "\nlisten_addresses = '*'\n" | sudo tee -a /etc/postgresql/9.1/main/postgresql.conf > /dev/null
+sudo su -c "printf \"\nhost \t all \t all \t 127.0.0.1/16 \t md5\nhostssl  all \t all \t 127.0.0.1/16 \t md5\n\" >> /etc/postgresql/9.3/main/pg_hba.conf"
+printf "\nlisten_addresses = '*'\n" | sudo tee -a /etc/postgresql/9.3/main/postgresql.conf > /dev/null
 
 #Restart PostGres
 sudo service postgresql restart