Add Trytond configuration and scripts for deployment
This commit introduces essential files and scripts for setting up a Trytond environment, including configuration, logging, systemd services, NGINX, and utility scripts for managing Trytond.
This commit is contained in:
2
scripts/run-trytond-admin.sh
Normal file
2
scripts/run-trytond-admin.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
trytond-admin -c trytond.conf --logconf logging.conf -d also -v -u $1
|
||||
2
scripts/run-trytond-cron.sh
Normal file
2
scripts/run-trytond-cron.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
trytond-cron -c trytond.conf --logconf logging.conf -d also
|
||||
2
scripts/run-trytond-install.sh
Normal file
2
scripts/run-trytond-install.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
pip install --upgrade "$1 <5.3=>5.2"
|
||||
18
scripts/run-trytond-upgrade.sh
Normal file
18
scripts/run-trytond-upgrade.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
list_packages() {
|
||||
pip freeze | grep '^trytond' | sed 's/==.*//'
|
||||
}
|
||||
|
||||
upgrade_package() {
|
||||
local package_name=$1
|
||||
local version=$2
|
||||
pip install --upgrade "${package_name}<${version}"
|
||||
}
|
||||
|
||||
packages=$(list_packages)
|
||||
|
||||
for package in $packages; do
|
||||
echo "Upgrading package: $package"
|
||||
upgrade_package "$package" "$1"
|
||||
done
|
||||
2
scripts/run-trytond-worker.sh
Normal file
2
scripts/run-trytond-worker.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
trytond-worker -c trytond.conf --logconf logging.conf -d also -n 1
|
||||
2
scripts/run-trytond.sh
Normal file
2
scripts/run-trytond.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
trytond -c trytond.conf -v --logconf logging.conf
|
||||
Reference in New Issue
Block a user