Fix postgres dir (9.5>10) in vm provision

This commit is contained in:
Tom Russell 2019-03-08 10:34:18 +00:00
parent 84064b7c5a
commit acf6976698

View File

@ -73,7 +73,7 @@ service postgresql start
# Ensure en_US locale exists # Ensure en_US locale exists
locale-gen en_US.UTF-8 locale-gen en_US.UTF-8
# Database config to listen on network connection # Database config to listen on network connection
sed -i "s/#\?listen_address.*/listen_addresses '*'/" /etc/postgresql/9.5/main/postgresql.conf sed -i "s/#\?listen_address.*/listen_addresses '*'/" /etc/postgresql/10/main/postgresql.conf
# Allow password connections from any IP (so includes host) # Allow password connections from any IP (so includes host)
echo "host all all all md5" >> /etc/postgresql/10/main/pg_hba.conf echo "host all all all md5" >> /etc/postgresql/10/main/pg_hba.conf
# Restart postgres to pick up config changes # Restart postgres to pick up config changes