From 75af325aab3caabc437aa94df0dfb3556d11ffbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20E=2E=20G=C3=B3mez?= Date: Mon, 12 May 2025 18:49:20 -0500 Subject: [PATCH] [ADD] Justfile to allow updating and installing with just --- justfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..34aa508 --- /dev/null +++ b/justfile @@ -0,0 +1,28 @@ +# justfile to update code, install it to /opt, and control Odoo service + +set shell := ['bash', '-cu'] + +default: + just --list + +update-custom: + ./update_from_repo.sh -o custom + +install-custom: + sudo ./install_odoo_code.sh -o custom + +stop-odoo: + sudo systemctl stop odoo.service + +start-odoo: + sudo systemctl start odoo.service + +restart-odoo: + sudo systemctl restart odoo.service + +update-and-install: update-custom install-custom + +update-install-and-stop: update-custom install-custom stop-odoo + +update-install-and-restart: update-custom install-custom restart-odoo +