docker-mailserver/target/scripts/helpers
Brennan Kinney c862e1451d
chore(housekeeping): Create helpers/change-detection.sh (#2610)
* chore: Extract change-detection method to it's own helper

This doesn't really belong in `helpers/ssl.sh`. Moving to it's own helper script.

* chore: Co-locate related change-detection method from container startup

It seems relevant to migrate the related support during startup for the change detection feature into this helper.

I opted to move the call from `start-mailserver.sh` into the `_setup` call at the end for a more explicit/visible location.

* chore: Move `CHKSUM_FILE` into `helpers/change-detection.sh`

It belongs there, not in `helpers/index.sh`.

* chore: Revise inline documentation

* tests(fix): Ensure correct functionality

Presently `test/test_helper.bats` is using it's own  `CHKSUM_FILE` instead of sourcing the var for the filepath.

`test_helper/common.bash` was calling a method to check for changes, but this helper may not correctly detect letsencrypt related changes as these are not ENV rely on, but global vars handled by `helpers/dns.sh`, so that should be run first like it is for `check-for-changes.sh`.

* tests(chore): Use `CHKSUM_FILE` var from helper

* chore: `addmailuser` should use `CHKSUM_FILE` var

* chore: Update `check-for-changes.sh` log message with correct path
2022-06-05 11:59:54 +12:00
..
accounts.sh feat: Support for Dovecot master accounts (#2535) 2022-05-08 00:28:32 +02:00
aliases.sh scripts: new log (#2493) 2022-03-21 07:07:52 +01:00
change-detection.sh chore(housekeeping): Create helpers/change-detection.sh (#2610) 2022-06-05 11:59:54 +12:00
dns.sh Remove unnecessary quotes from command substitutions (#2561) 2022-05-05 10:28:38 +02:00
error.sh Fix changedetector restart loop (#2548) 2022-04-19 21:09:25 +02:00
index.sh chore(housekeeping): Create helpers/change-detection.sh (#2610) 2022-06-05 11:59:54 +12:00
lock.sh Remove unnecessary quotes from command substitutions (#2561) 2022-05-05 10:28:38 +02:00
log.sh Use color variables instead of escape codes (#2565) 2022-05-10 17:50:33 +02:00
network.sh Rename config examples directory (#2438) 2022-03-02 22:54:14 +00:00
postfix.sh Rename config examples directory (#2438) 2022-03-02 22:54:14 +00:00
relay.sh refactor: Revised relay.sh helper (#2604) 2022-06-05 11:27:15 +12:00
sasl.sh Rename config examples directory (#2438) 2022-03-02 22:54:14 +00:00
ssl.sh chore(housekeeping): Create helpers/change-detection.sh (#2610) 2022-06-05 11:59:54 +12:00
utils.sh log/scripts: introduce proper log level fallback and env getter function (#2506) 2022-04-05 17:10:01 +02:00