NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/Dockerfiles/acme/reload-configurations.sh

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

reload-configurations.sh on main
Author Date Commit Line Code
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
1
#!/bin/bash
Open commit View diff
1 #!/bin/bash
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
2
Open commit View diff
2
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
3
# Reading container IDs
Open commit View diff
3 # Reading container IDs
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
4
# Wrapping as array to ensure trimmed content when calling $NGINX etc.
Open commit View diff
4 # Wrapping as array to ensure trimmed content when calling $NGINX etc.
DerLinkman almost 2 years ago b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
5
NGINX=($(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/json | jq -r ".[] | {name: .Config.Labels[\"com.docker.compose.service\"], project: .Config.Labels[\"com.docker.compose.project\"], id: .Id}" | jq -rc "select( .name | tostring | contains(\"nginx-mailcow\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id" | tr "\n" " "))
Open commit View diff
5 NGINX=($(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/json | jq -r ".[] | {name: .Config.Labels[\"com.docker.compose.service\"], project: .Config.Labels[\"com.docker.compose.project\"], id: .Id}" | jq -rc "select( .name | tostring | contains(\"nginx-mailcow\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id" | tr "\n" " "))
same change b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
6
DOVECOT=($(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/json | jq -r ".[] | {name: .Config.Labels[\"com.docker.compose.service\"], project: .Config.Labels[\"com.docker.compose.project\"], id: .Id}" | jq -rc "select( .name | tostring | contains(\"dovecot-mailcow\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id" | tr "\n" " "))
Open commit View diff
6 DOVECOT=($(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/json | jq -r ".[] | {name: .Config.Labels[\"com.docker.compose.service\"], project: .Config.Labels[\"com.docker.compose.project\"], id: .Id}" | jq -rc "select( .name | tostring | contains(\"dovecot-mailcow\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id" | tr "\n" " "))
same change b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
7
POSTFIX=($(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/json | jq -r ".[] | {name: .Config.Labels[\"com.docker.compose.service\"], project: .Config.Labels[\"com.docker.compose.project\"], id: .Id}" | jq -rc "select( .name | tostring | contains(\"postfix-mailcow\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id" | tr "\n" " "))
Open commit View diff
7 POSTFIX=($(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/json | jq -r ".[] | {name: .Config.Labels[\"com.docker.compose.service\"], project: .Config.Labels[\"com.docker.compose.project\"], id: .Id}" | jq -rc "select( .name | tostring | contains(\"postfix-mailcow\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id" | tr "\n" " "))
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
8
Open commit View diff
8
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
9
reload_nginx(){
Open commit View diff
9 reload_nginx(){
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
10
  echo "Reloading Nginx..."
Open commit View diff
10 echo "Reloading Nginx..."
DerLinkman almost 2 years ago b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
11
  NGINX_RELOAD_RET=$(curl -X POST --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${NGINX}/exec -d '{"cmd":"reload", "task":"nginx"}' --silent -H 'Content-type: application/json' | jq -r .type)
Open commit View diff
11 NGINX_RELOAD_RET=$(curl -X POST --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${NGINX}/exec -d '{"cmd":"reload", "task":"nginx"}' --silent -H 'Content-type: application/json' | jq -r .type)
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
12
  [[ ${NGINX_RELOAD_RET} != 'success' ]] && { echo "Could not reload Nginx, restarting container..."; restart_container ${NGINX} ; }
Open commit View diff
12 [[ ${NGINX_RELOAD_RET} != 'success' ]] && { echo "Could not reload Nginx, restarting container..."; restart_container ${NGINX} ; }
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
13
}
Open commit View diff
13 }
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
14
Open commit View diff
14
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
15
reload_dovecot(){
Open commit View diff
15 reload_dovecot(){
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
16
  echo "Reloading Dovecot..."
Open commit View diff
16 echo "Reloading Dovecot..."
DerLinkman almost 2 years ago b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
17
  DOVECOT_RELOAD_RET=$(curl -X POST --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${DOVECOT}/exec -d '{"cmd":"reload", "task":"dovecot"}' --silent -H 'Content-type: application/json' | jq -r .type)
Open commit View diff
17 DOVECOT_RELOAD_RET=$(curl -X POST --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${DOVECOT}/exec -d '{"cmd":"reload", "task":"dovecot"}' --silent -H 'Content-type: application/json' | jq -r .type)
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
18
  [[ ${DOVECOT_RELOAD_RET} != 'success' ]] && { echo "Could not reload Dovecot, restarting container..."; restart_container ${DOVECOT} ; }
Open commit View diff
18 [[ ${DOVECOT_RELOAD_RET} != 'success' ]] && { echo "Could not reload Dovecot, restarting container..."; restart_container ${DOVECOT} ; }
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
19
}
Open commit View diff
19 }
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
20
Open commit View diff
20
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
21
reload_postfix(){
Open commit View diff
21 reload_postfix(){
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
22
  echo "Reloading Postfix..."
Open commit View diff
22 echo "Reloading Postfix..."
DerLinkman almost 2 years ago b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
23
  POSTFIX_RELOAD_RET=$(curl -X POST --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${POSTFIX}/exec -d '{"cmd":"reload", "task":"postfix"}' --silent -H 'Content-type: application/json' | jq -r .type)
Open commit View diff
23 POSTFIX_RELOAD_RET=$(curl -X POST --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${POSTFIX}/exec -d '{"cmd":"reload", "task":"postfix"}' --silent -H 'Content-type: application/json' | jq -r .type)
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
24
  [[ ${POSTFIX_RELOAD_RET} != 'success' ]] && { echo "Could not reload Postfix, restarting container..."; restart_container ${POSTFIX} ; }
Open commit View diff
24 [[ ${POSTFIX_RELOAD_RET} != 'success' ]] && { echo "Could not reload Postfix, restarting container..."; restart_container ${POSTFIX} ; }
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
25
}
Open commit View diff
25 }
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
26
Open commit View diff
26
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
27
restart_container(){
Open commit View diff
27 restart_container(){
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
28
  for container in $*; do
Open commit View diff
28 for container in $*; do
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
29
    echo "Restarting ${container}..."
Open commit View diff
29 echo "Restarting ${container}..."
DerLinkman almost 2 years ago b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
30
    C_REST_OUT=$(curl -X POST --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${container}/restart --silent | jq -r '.msg')
Open commit View diff
30 C_REST_OUT=$(curl -X POST --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${container}/restart --silent | jq -r '.msg')
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
31
    echo "${C_REST_OUT}"
Open commit View diff
31 echo "${C_REST_OUT}"
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
32
  done
Open commit View diff
32 done
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
33
}
Open commit View diff
33 }
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
34
Open commit View diff
34
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
35
if [[ "${CERT_AMOUNT_CHANGED}" == "1" ]]; then
Open commit View diff
35 if [[ "${CERT_AMOUNT_CHANGED}" == "1" ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
36
  restart_container ${NGINX}
Open commit View diff
36 restart_container ${NGINX}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
37
  restart_container ${DOVECOT}
Open commit View diff
37 restart_container ${DOVECOT}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
38
  restart_container ${POSTFIX}
Open commit View diff
38 restart_container ${POSTFIX}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
39
else
Open commit View diff
39 else
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
40
  reload_nginx
Open commit View diff
40 reload_nginx
andryyy over 6 years ago 9a25ebc

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9a25ebc54ee71258fe055a4646e506369a64d407
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
41
  #reload_dovecot
Open commit View diff
41 #reload_dovecot
same change 9a25ebc

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9a25ebc54ee71258fe055a4646e506369a64d407
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
42
  restart_container ${DOVECOT}
Open commit View diff
42 restart_container ${DOVECOT}
andryyy over 6 years ago 7b9f5ac

[ACME] Restart Postfix, reload seems not work all the time

Full commit hash
7b9f5ac1c4ebb9253993925002644faa0154e55e
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
43
  #reload_postfix
Open commit View diff
43 #reload_postfix
same change 7b9f5ac

[ACME] Restart Postfix, reload seems not work all the time

Full commit hash
7b9f5ac1c4ebb9253993925002644faa0154e55e
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
44
  restart_container ${POSTFIX}
Open commit View diff
44 restart_container ${POSTFIX}
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
45
fi
Open commit View diff
45 fi