Skip to content

Commit

Permalink
Run update.sh (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
J0WI authored Nov 10, 2023
1 parent 81bdfd2 commit 0f5eefc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion apache/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ POSTFIXADMIN_DB_PASSWORD=$(get_env_value "POSTFIXADMIN_DB_PASSWORD" "")
POSTFIXADMIN_SMTP_SERVER=$(get_env_value "POSTFIXADMIN_SMTP_SERVER" "localhost")
POSTFIXADMIN_SMTP_PORT=$(get_env_value "POSTFIXADMIN_SMTP_PORT" "25")
POSTFIXADMIN_ENCRYPT=$(get_env_value "POSTFIXADMIN_ENCRYPT" "md5crypt")

POSTFIXADMIN_DKIM=$(get_env_value "POSTFIXADMIN_DKIM" "NO")
POSTFIXADMIN_DKIM_ALL_ADMINS=$(get_env_value "POSTFIXADMIN_DKIM_ALL_ADMINS" "NO")

DEFAULT_SETUP_PASSWORD="changeme"
POSTFIXADMIN_SETUP_PASSWORD=$(get_env_value "POSTFIXADMIN_SETUP_PASSWORD" "${DEFAULT_SETUP_PASSWORD}")
Expand Down Expand Up @@ -105,6 +106,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
\$CONF['smtp_port'] = '${POSTFIXADMIN_SMTP_PORT}';
\$CONF['encrypt'] = '${POSTFIXADMIN_ENCRYPT}';
\$CONF['configured'] = true;
\$CONF['dkim'] = '${POSTFIXADMIN_DKIM}';
\$CONF['dkim_all_admins'] = '${POSTFIXADMIN_DKIM_ALL_ADMINS}';
?>" | tee config.local.php
else
echo "WARNING: $PWD/config.local.php already exists."
Expand Down
5 changes: 4 additions & 1 deletion fpm-alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ POSTFIXADMIN_DB_PASSWORD=$(get_env_value "POSTFIXADMIN_DB_PASSWORD" "")
POSTFIXADMIN_SMTP_SERVER=$(get_env_value "POSTFIXADMIN_SMTP_SERVER" "localhost")
POSTFIXADMIN_SMTP_PORT=$(get_env_value "POSTFIXADMIN_SMTP_PORT" "25")
POSTFIXADMIN_ENCRYPT=$(get_env_value "POSTFIXADMIN_ENCRYPT" "md5crypt")

POSTFIXADMIN_DKIM=$(get_env_value "POSTFIXADMIN_DKIM" "NO")
POSTFIXADMIN_DKIM_ALL_ADMINS=$(get_env_value "POSTFIXADMIN_DKIM_ALL_ADMINS" "NO")

DEFAULT_SETUP_PASSWORD="changeme"
POSTFIXADMIN_SETUP_PASSWORD=$(get_env_value "POSTFIXADMIN_SETUP_PASSWORD" "${DEFAULT_SETUP_PASSWORD}")
Expand Down Expand Up @@ -105,6 +106,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
\$CONF['smtp_port'] = '${POSTFIXADMIN_SMTP_PORT}';
\$CONF['encrypt'] = '${POSTFIXADMIN_ENCRYPT}';
\$CONF['configured'] = true;
\$CONF['dkim'] = '${POSTFIXADMIN_DKIM}';
\$CONF['dkim_all_admins'] = '${POSTFIXADMIN_DKIM_ALL_ADMINS}';
?>" | tee config.local.php
else
echo "WARNING: $PWD/config.local.php already exists."
Expand Down
5 changes: 4 additions & 1 deletion fpm/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ POSTFIXADMIN_DB_PASSWORD=$(get_env_value "POSTFIXADMIN_DB_PASSWORD" "")
POSTFIXADMIN_SMTP_SERVER=$(get_env_value "POSTFIXADMIN_SMTP_SERVER" "localhost")
POSTFIXADMIN_SMTP_PORT=$(get_env_value "POSTFIXADMIN_SMTP_PORT" "25")
POSTFIXADMIN_ENCRYPT=$(get_env_value "POSTFIXADMIN_ENCRYPT" "md5crypt")

POSTFIXADMIN_DKIM=$(get_env_value "POSTFIXADMIN_DKIM" "NO")
POSTFIXADMIN_DKIM_ALL_ADMINS=$(get_env_value "POSTFIXADMIN_DKIM_ALL_ADMINS" "NO")

DEFAULT_SETUP_PASSWORD="changeme"
POSTFIXADMIN_SETUP_PASSWORD=$(get_env_value "POSTFIXADMIN_SETUP_PASSWORD" "${DEFAULT_SETUP_PASSWORD}")
Expand Down Expand Up @@ -105,6 +106,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
\$CONF['smtp_port'] = '${POSTFIXADMIN_SMTP_PORT}';
\$CONF['encrypt'] = '${POSTFIXADMIN_ENCRYPT}';
\$CONF['configured'] = true;
\$CONF['dkim'] = '${POSTFIXADMIN_DKIM}';
\$CONF['dkim_all_admins'] = '${POSTFIXADMIN_DKIM_ALL_ADMINS}';
?>" | tee config.local.php
else
echo "WARNING: $PWD/config.local.php already exists."
Expand Down

0 comments on commit 0f5eefc

Please sign in to comment.