[UPD] script install OSX: support postgis
This commit is contained in:
parent
dc5d739984
commit
bc010d526c
1 changed files with 2 additions and 0 deletions
|
|
@ -14,10 +14,12 @@ EL_USER=${USER}
|
||||||
#--------------------------------------------------
|
#--------------------------------------------------
|
||||||
echo "\n---- Install PostgreSQL Server ----"
|
echo "\n---- Install PostgreSQL Server ----"
|
||||||
brew install postgresql
|
brew install postgresql
|
||||||
|
brew install postgis
|
||||||
brew services start postgresql
|
brew services start postgresql
|
||||||
|
|
||||||
echo "\n---- Creating the ERPLibre PostgreSQL User ----"
|
echo "\n---- Creating the ERPLibre PostgreSQL User ----"
|
||||||
sudo su - postgres -c "createuser -s ${EL_USER}" 2> /dev/null || true
|
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
|
# Install Dependencies
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue