This script is based on the install script from Yenthe Van Ginneken (https://github.com/Yenthe666/InstallScript) This script handle the installation of Odoo under MAC OS
https://raw.githubusercontent.com/OthmaneGhandi/OdooInstallScriptMac/master/odoo_install.sh
There are a few things you can configure, this is the most used list:
OE_USER will be the username for the system user.
INSTALL_WKHTMLTOPDF set to False if you do not want to install Wkhtmltopdf, if you want to install it you should set it to True.
OE_PORT is the port where Odoo should run on, for example 8069.
OE_VERSION is the Odoo version to install, for example 13.0 for Odoo V13.
IS_ENTERPRISE will install the Enterprise version on top of 13.0 if you set it to True, set it to False if you want the community version of Odoo 13.
OE_SUPERADMIN is the master password for this Odoo installation.
sudo chmod +x odoo_install.sh
sudo ./odoo_install.sh
=> Add the password, that you entered for the user when the script was running,inside your conf file : /etc/${OE_CONFIG}.conf
db_password = False -> your_password
=> Give privileges accesses to your user : (NB : change ${OE_USER} with your user name)
psql -U postgres
ALTER USER ${OE_USER} WITH SUPERUSER CREATEDB CREATEROLE CREATEUSER LOGIN;