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:
2025-12-24 17:05:10 +01:00
parent 1066097465
commit efd53e6c49
13 changed files with 175 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
#!/bin/bash
trytond-admin -c trytond.conf --logconf logging.conf -d also -v -u $1

View File

@@ -0,0 +1,2 @@
#!/bin/bash
trytond-cron -c trytond.conf --logconf logging.conf -d also

View File

@@ -0,0 +1,2 @@
#!/bin/bash
pip install --upgrade "$1 <5.3=>5.2"

View 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

View 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
View File

@@ -0,0 +1,2 @@
#!/bin/bash
trytond -c trytond.conf -v --logconf logging.conf