mailcow-dockerized/helper-scripts
sdsys-ch 3cc28af607
[Helper] Fix cold-standby script to support digits and override files (#6800)
This commit fixes two bugs in the cold-standby script:

1. Support digits in COMPOSE_PROJECT_NAME
   The script was stripping digits from COMPOSE_PROJECT_NAME, while
   backup_and_restore.sh (fixed in a71d991c) correctly supports them.
   Added '0-9' to the tr character set to align behavior.

2. Support docker-compose.override.yml on remote
   Lines 172 and 287 explicitly used '-f docker-compose.yml' which
   causes Docker Compose to ignore docker-compose.override.yml even
   when present. Changed to 'cd && compose' pattern (matching line 296)
   to auto-discover override files.

   Impact: Users with custom volumes/services in override file would
   experience silent failures - volumes not created, images not pulled,
   data syncing to wrong locations.

Both fixes ensure cold-standby works correctly with standard Docker
Compose conventions and user customizations.

Co-authored-by: Christophe Neuerburg <c.neuerburg@sdsys.ch>
2025-10-02 09:21:26 +02:00
..
docker-compose.override.yml.d Feat/prometheus-exporter : Add prometheus exporter and grafana dashboard for mailcow. (#6314) 2025-08-28 12:36:43 +02:00
_cold-standby.sh [Helper] Fix cold-standby script to support digits and override files (#6800) 2025-10-02 09:21:26 +02:00
add-new-lang-keys.php 🛠 fix: Language detection 2022-10-06 22:21:12 +08:00
backup_and_restore.sh Fix tiny typo 2025-03-27 20:21:25 +00:00
check_translations.rb 🛠 fix: Language detection 2022-10-06 22:21:12 +08:00
expiry-dates.sh Fixed permission for expiry-dates.sh 2023-03-03 12:41:24 +01:00
generate_caa_record.py T.: Added a script for generating CAA records 2023-10-23 19:44:28 +02:00
mailcow-reset-admin.sh Fix broken pipe error in reset-admin.sh 2023-03-28 11:17:59 +02:00
reset-learns.sh [Redis] redis-cli suppress auth warning 2024-11-19 15:10:52 +01:00
update_compose.sh [Compose Updater] Corrected syntax errors 2022-12-26 14:33:15 +01:00
update_postscreen_whitelist.sh expanded postscreen whitelist with modern freemailers + included checks.mailcow.email 2025-08-28 14:06:17 +02:00