Created
June 21, 2021 16:23
-
-
Save afahitech/fc1e77e32a5aaa41f64d312c4a61e1e5 to your computer and use it in GitHub Desktop.
Install Odoo in Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#One Click Install Odoo | |
wget https://raw.githubusercontent.com/Yenthe666/InstallScript/13.0/odoo_install.sh | |
chmod +x odoo_install.sh | |
bash odoo_install.sh | |
#Add Odoo user to the system | |
sudo adduser --system --quiet --shell=/bin/bash --home=/opt/odoo --gecos 'odoo' --group odoo | |
#Make Configuration Directory and Log Directory | |
sudo mkdir /etc/odoo && mkdir /var/log/odoo/ | |
#Installing Necessary OS Related Packages | |
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install postgresql postgresql-server-dev-12 build-essential python3-pillow python3-lxml python3-dev python3-pip python3-setuptools npm nodejs git gdebi libldap2-dev libsasl2-dev libxml2-dev libxslt1-dev libjpeg-dev -y | |
#Restart Postgres Service | |
sudo service postgresql restart | |
#Cloning Odoo 13 From Source Repository | |
sudo git clone --depth=1 --branch=13.0 https://github.com/odoo/odoo.git /opt/odoo/odoo | |
#Change Ownership of Odoo Directory | |
sudo chown odoo:odoo /opt/odoo/ -R && sudo chown odoo:odoo /var/log/odoo/ -R | |
#Installing Python Packages Required by Odoo | |
cd /opt/odoo/odoo && sudo pip3 install -r requirements.txt | |
#Installing wkhtmltopdf | |
cd /tmp && wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.13.5/wkhtmltox_0.13.5-1.focal_amd64.deb && sudo gdebi -n wkhtmltox_0.13.5-1.focal_amd64.deb && rm wkhtmltox_0.13.5-1.focal_amd64.deb | |
#Linking wkhtmltopdf as Command | |
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin/ && sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin/ | |
#Creating PostgreSQL user for Odoo | |
sudo su - postgres -c "createuser -s odoo" | |
#Starting Odoo and Creating Config File | |
sudo su - odoo -c "/opt/odoo/odoo/odoo-bin --addons-path=/opt/odoo/odoo/addons -s --stop-after-init" | |
#Starting Odoo | |
sudo service odoo restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment