[UPD] script install OSX: support postgis

This commit is contained in:
Mathieu Benoit 2023-01-26 16:00:12 -05:00
parent dc5d739984
commit bc010d526c

View file

@ -14,10 +14,12 @@ EL_USER=${USER}
#--------------------------------------------------
echo "\n---- Install PostgreSQL Server ----"
brew install postgresql
brew install postgis
brew services start postgresql
echo "\n---- Creating the ERPLibre PostgreSQL User ----"
sudo su - postgres -c "createuser -s ${EL_USER}" 2> /dev/null || true
sudo su - postgres -c "CREATE EXTENSION postgis;\nCREATE EXTENSION postgis_topology;" 2> /dev/null || true
#--------------------------------------------------
# Install Dependencies