Commit Graph

18 Commits

Author SHA1 Message Date
Stéphan Sainléger
266842585b [IMP] add argument validation with usage message
Add proper argument validation at the start of upgrade.sh:
- Check that exactly 4 arguments are provided
- Display a helpful usage message with argument descriptions
- Include a concrete example command

This prevents cryptic errors when the script is called incorrectly
and provides clear guidance on expected parameters. With set -u enabled,
accessing unset positional parameters would cause an unclear error message.
2026-02-02 20:06:27 +01:00
Stéphan Sainléger
30909a3b28 [IMP] add strict mode (set -euo pipefail) to all scripts
Enable bash strict mode in all shell scripts to catch errors early:
- set -e: Exit immediately if a command exits with non-zero status
- set -u: Treat unset variables as an error
- set -o pipefail: Return value of a pipeline is the status of the last
  command to exit with non-zero status

This prevents silent failures and makes debugging easier by failing fast
when something goes wrong instead of continuing with potentially corrupted
state.
2026-02-02 20:06:27 +01:00
Stéphan Sainléger
59fc39620d [IMP] improves the way postgres container is detected 2026-01-16 14:19:51 +01:00
Stéphan Sainléger
469fb42e48 [IMP] add function to execute python scripts in Odoo shell 2026-01-13 12:37:38 +01:00
Stéphan Sainléger
972e6c7b26 [FIX] add su access for filestore manipulation 2025-09-11 10:31:52 +02:00
Boris Gallet
5feebec210 cln: img rc_15.0:latest and fix first iteration dir creation 2025-02-11 15:26:20 +01:00
Stéphan Sainléger
ad2b95d07d [IMP] better managment of model database in destination version 2025-02-11 14:58:27 +01:00
Stéphan Sainléger
e19c05c812 imp: remove useless final model db name attribute 2024-12-17 15:57:22 +01:00
Stéphan Sainléger
564c0d75bc imp: remove useless .zip file attribute 2024-12-17 15:57:20 +01:00
Stéphan Sainléger
09a855258e imp: factorize database copy process 2024-12-17 15:46:05 +01:00
Stéphan Sainléger
c54cbe125b imp: factorize filestore copy process 2024-12-17 15:46:05 +01:00
Stéphan Sainléger
116d00091b imp: factorize query_postgres_container() in upgrade.sh 2024-12-17 15:46:05 +01:00
Stéphan Sainléger
6ac98a48e9 imp: remove useless "source" command 2024-12-17 15:46:05 +01:00
Stéphan Sainléger
91b9831975 imp: simplify filestore copy commands 2024-11-26 09:23:45 +01:00
Stéphan Sainléger
5cb8a3e56f fix: typo components 2024-11-26 09:23:45 +01:00
Stéphan Sainléger
ee6a920bd1 fix: move service postgres check before the other checks 2024-11-26 09:23:45 +01:00
Stéphan Sainléger
bb482c5a19 fix: replace lokavaluto_postgres_1 by its variable 2024-11-26 09:23:45 +01:00
Stéphan Sainléger
076a7bb3eb [NEW] add first version of 0k Odoo Upgrade scripts 2024-11-26 09:23:45 +01:00