Giter Club home page Giter Club logo

odoo-bash-installer's Introduction

OdooBashInstaller

Welcome to a simple installer (for Debian) for Odoo that doens't use Docker (old school way).

How to use it

  • Download this repository and enter the folder
  • chmod +x ./run.sh
  • As root ./run.sh [Odoo version, ex: 14] domain.old

The script will take a while to download and do everything (25~ minutes), it will do this steps:

Install

  • Nginx for reverse proxy for HTTP and HTTPS
  • Odoo (with the Nightly Debian packages and add the repository) and configure it for proxy mode
    • Install also PostGreSQL and wkhtmltopdf
  • certbot to generate the certificate (with cronjob)
  • Install pip packages per Odoo version automatically (if file exist)
    • Just copy and rename (as example) 14-requirements-example.txt to 14-requirements.txt and add the packages (this step before running the script)
  • Install git repositories and checkout to the Odoo version branch with git-clone-repo.txt
  • Create a folder opt/extra-addons already mapped for addons
  • Enable just 22, 80 and 443 as ports with nftables
  • DB backup with module auto_backup

Notes

  • I get bash: warning: setlocale: LC_ALL: cannot change locale on SSH
    • localectl set-locale LANG=it_IT.UTF-8 just change it with the locale you are using to fix it
  • Where it will be saved my pip packages?
    • The script will add /usr/lib/python3/dist-packages/odoo/addons folder but automatically Odoo will add in addons_path setting value the python version folder like /usr/local/lib/python3.9/dist-packages/odoo/addons. This means that if you upgrade python you need to reinstall the packages, in case you need to be sure you can use pip show [packagename] and will show to you the folder path.
  • This script is safe?
    • The script is checked with ShellCheck for code quality but you can always read the code!
  • Can I test it on Virtualbox?
    • Yes, it is the way the script is developed and tested. Just don't forget to set NAT in Virtualbox for the network mode and configure the port forwarding for SSH and Odoo (port 8069) as the certbot/nginx will crash as it is not able to issue a certificate (the script will proceed), use localhost as domain for the script and check the next note to open the 8069 port
  • I want to access to 8069 port but is blocked!
    • Yes, it is part of the nftables configured but maybe you need it for various reasons. This command as root will add the 8069 but you can change it for whatever you want /usr/sbin/nft add rule inet filter input tcp dport 8069 accept

odoo-bash-installer's People

Contributors

mte90 avatar

Watchers

 avatar Eugenio Petullà avatar

odoo-bash-installer's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.