Welcome to a simple installer (for Debian) for Odoo that doens't use Docker (old school way).
- 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:
Nginx
for reverse proxy for HTTP and HTTPSOdoo
(with the Nightly Debian packages and add the repository) and configure it for proxy mode- Install also
PostGreSQL
andwkhtmltopdf
- Install also
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
to14-requirements.txt
and add the packages (this step before running the script)
- Just copy and rename (as example)
- Install
git
repositories and checkout to the Odoo version branch withgit-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
- I get
bash: warning: setlocale: LC_ALL: cannot change locale
on SSHlocalectl 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 inaddons_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 usepip show [packagename]
and will show to you the folder path.
- The script will add
- 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), uselocalhost
as domain for the script and check the next note to open the 8069 port
- Yes, it is the way the script is developed and tested. Just don't forget to set
- 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
- 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