Elevate your Odoo instance management on Linux servers with this nifty Python tool. It's like having a Swiss Army knife, but for Odoo servers.
First, grab the latest gadget:
wget https://github.com/VictorHachard/odoo-server-manager/releases/latest/download/odoo-server-manager.deb
Then, unleash it onto your system:
sudo apt install ./odoo-server-manager.deb -y
All in one go:
wget https://github.com/VictorHachard/odoo-server-manager/releases/latest/download/odoo-server-manager.deb && \
dpkg -s odoo-server-manager &> /dev/null && sudo apt remove odoo-server-manager -y; \
sudo apt install ./odoo-server-manager.deb -y && rm odoo-server-manager.deb
-v
: Specify the Odoo version, like 16.0 (mandatory).-p
: Declare the port, 8069 style (mandatory).-l
: Longpolling port, say 8072 (mandatory).- Add-ons:
-d
: Date, for a precise odoo version.-n
: Friendly name, if you're into naming your servers.-s
: Server name, for the more formal occasions.-ot
: Custom Odoo template, if you're picky.-st
: Service template, because why not?-nt
: Nginx template, for the web-savvy.
Examples:
odoo-server-manager create -v 16.0 -p 8069 -l 8072 -n odoo-16
- For the fancy:
odoo-server-manager create -v 16.0 -p 8069 -l 8072 -n odoo-16 -s odoo-16.example.com -ot odoo-16.conf -st odoo-16.service -nt odoo-16.nginx
-d
: Details, if you're nosy (optional).- Example:
odoo-server-manager list -d
-i
: Instance name (mandatory).-t
: Type (Odoo, nginx, or service) (mandatory).- Example:
odoo-server-manager reset -i your_instance_name -t odoo
-i
: Instance name (mandatory).-d
: Date, for a precise odoo version.- Example:
odoo-server-manager update -i your_instance_name
- For the fancy:
odoo-server-manager update -i your_instance_name -d 20210501
-i
: Instance name (mandatory).-d
: Dependency name (mandatory).- Example:
odoo-server-manager add_dependency -i your_instance_name -d Babel
-n
: Instance name (mandatory).- Example:
odoo-server-manager delete -n your_instance_name
-i
: Instance name (mandatory).-u
: Username (mandatory).- Example:
odoo-server-manager add_user -i your_instance_name -u admin
-i
: Instance name (mandatory).- Example:
odoo-server-manager journal -i your_instance_name
- Unleash the guide.
- Example:
odoo-server-manager help
When it's time to vanish:
sudo apt remove odoo-server-manager -y
Remember, with great power comes great responsibility. Use wisely! 🕵️♂️💻🚀