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:
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
|
||||
Reference in New Issue
Block a user