Closing external acces to DB

With those lines you were able to access the database engine externally, something you want not in a production environment.
pull/11/head
Sebastian Reyes Espinosa 10 years ago
parent 35d3f9fd15
commit 2514e3aae7

@ -51,9 +51,6 @@ sudo apt-get upgrade -y
#--------------------------------------------------
echo -e "\n---- Install PostgreSQL Server ----"
sudo apt-get install postgresql -y
echo -e "\n---- PostgreSQL $PG_VERSION Settings ----"
sudo sed -i s/"#listen_addresses = 'localhost'"/"listen_addresses = '*'"/g /etc/postgresql/9.3/main/postgresql.conf
echo -e "\n---- Creating the ODOO PostgreSQL User ----"
sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true

Loading…
Cancel
Save