[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.
This commit is contained in:
Stéphan Sainléger
2026-02-02 17:54:34 +01:00
parent 4d7933cef0
commit 30909a3b28
21 changed files with 21 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/bash
set -euo pipefail
DB_NAME="$1"
ODOO_SERVICE="$2"