[ADD] Justfile to allow updating and installing with just
This commit is contained in:
parent
62aa0a9e0f
commit
75af325aab
28
justfile
Normal file
28
justfile
Normal file
@ -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
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user