docker-mailserver/target/scripts/helpers
Georg Lauterbach ab55343d8e
scripts: rework environment variables setup (#2716)
* outsourcing env variable setup

This commit contains major parts of the work of refactoring the setup
and usage of environment variables. It outsources the setup into its own
script and provides dedicated functions to be executed at a later point in time.

A **new** env variable was added: `USER_PROVISIONG` which provides a
better way of defining which method / protocol to use when it comes to
setting up users. This way, the `ENABLE_LDAP` variable is deprecated,
but all of this is backwards compatible due to a "compatibility layer", a function provided by the new variables script.

This is not a breaking change. It mostly refators internal scripts. The
only change facing the user-side is the deprecation of `ENABLE_LDAP`. We
can prolong the period of deprecation for this variable as long as we
want, because the new function that ensures backwards compatibility
provides a clean interface for the future.

Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Co-authored-by: Casper <casperklein@users.noreply.github.com>
2022-08-22 08:31:32 +02:00
..
database refactor: CLI commands for database management (#2654) 2022-07-29 12:10:23 +12:00
accounts.sh scripts: rework environment variables setup (#2716) 2022-08-22 08:31:32 +02:00
aliases.sh refactor: Revise check-for-changes.sh (#2615) 2022-06-12 11:36:37 +12:00
change-detection.sh chore(check-for-changes.sh): Drop redundant guards (#2623) 2022-06-09 19:48:07 +12:00
dns.sh scripts: rework environment variables setup (#2716) 2022-08-22 08:31:32 +02:00
error.sh Fix changedetector restart loop (#2548) 2022-04-19 21:09:25 +02:00
index.sh refactor: CLI commands for database management (#2654) 2022-07-29 12:10:23 +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 scripts: rework environment variables setup (#2716) 2022-08-22 08:31:32 +02:00
relay.sh chore(housekeeping): Normalize how config files filter out unwanted lines (#2619) 2022-06-07 01:07:30 +12:00
ssl.sh chore(housekeeping): Create helpers/change-detection.sh (#2610) 2022-06-05 11:59:54 +12:00
utils.sh chore: Extract out /var/mail ownership workaround (#2628) 2022-06-08 10:09:19 +12:00
variables.sh scripts: rework environment variables setup (#2716) 2022-08-22 08:31:32 +02:00