#-------------------------------------------------- |
# Install PostgreSQL Server |
#-------------------------------------------------- |
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 |
echo -e "\n---- Creating the ODOO PostgreSQL User ----" sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true