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/load-dns-config.sh

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

load-dns-config.sh on main
Author Date Commit Line Code
Carlos 8 months ago 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
1
#!/bin/bash
Open commit View diff
1 #!/bin/bash
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
2
Open commit View diff
2
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
3
SCRIPT_SOURCE="${BASH_SOURCE[0]:-${0}}"
Open commit View diff
3 SCRIPT_SOURCE="${BASH_SOURCE[0]:-${0}}"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
4
if [[ "${SCRIPT_SOURCE}" == "${0}" ]]; then
Open commit View diff
4 if [[ "${SCRIPT_SOURCE}" == "${0}" ]]; then
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
5
  __dns_loader_standalone=1
Open commit View diff
5 __dns_loader_standalone=1
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
6
else
Open commit View diff
6 else
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
7
  __dns_loader_standalone=0
Open commit View diff
7 __dns_loader_standalone=0
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
8
fi
Open commit View diff
8 fi
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
9
Open commit View diff
9
FreddleSpl0it 5 months ago 8f883f3

Rename dns-101 to dns-01

Full commit hash
8f883f3d374b4de9b3ad731d3bef5d667b095ae8
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
10
CONFIG_PATH="${ACME_DNS_CONFIG_FILE:-/etc/acme/dns-01.conf}"
Open commit View diff
10 CONFIG_PATH="${ACME_DNS_CONFIG_FILE:-/etc/acme/dns-01.conf}"
Carlos 8 months ago 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
11
Open commit View diff
11
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
12
if [[ ! -f "${CONFIG_PATH}" ]]; then
Open commit View diff
12 if [[ ! -f "${CONFIG_PATH}" ]]; then
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
13
  if [[ $__dns_loader_standalone -eq 1 ]]; then
Open commit View diff
13 if [[ $__dns_loader_standalone -eq 1 ]]; then
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
14
    exit 0
Open commit View diff
14 exit 0
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
15
  else
Open commit View diff
15 else
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
16
    return 0
Open commit View diff
16 return 0
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
17
  fi
Open commit View diff
17 fi
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
18
fi
Open commit View diff
18 fi
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
19
Open commit View diff
19
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
20
source /srv/functions.sh
Open commit View diff
20 source /srv/functions.sh
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
21
Open commit View diff
21
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
22
log_f "Loading DNS-01 configuration from ${CONFIG_PATH}"
Open commit View diff
22 log_f "Loading DNS-01 configuration from ${CONFIG_PATH}"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
23
Open commit View diff
23
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
24
LINE_NO=0
Open commit View diff
24 LINE_NO=0
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
25
while IFS= read -r line || [[ -n "${line}" ]]; do
Open commit View diff
25 while IFS= read -r line || [[ -n "${line}" ]]; do
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
26
  LINE_NO=$((LINE_NO+1))
Open commit View diff
26 LINE_NO=$((LINE_NO+1))
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
27
  line="${line%$'\r'}"
Open commit View diff
27 line="${line%$'\r'}"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
28
  line_trimmed="$(printf '%s' "${line}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
Open commit View diff
28 line_trimmed="$(printf '%s' "${line}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
29
  [[ -z "${line_trimmed}" ]] && continue
Open commit View diff
29 [[ -z "${line_trimmed}" ]] && continue
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
30
  [[ "${line_trimmed:0:1}" == "#" ]] && continue
Open commit View diff
30 [[ "${line_trimmed:0:1}" == "#" ]] && continue
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
31
  if [[ "${line_trimmed}" != *=* ]]; then
Open commit View diff
31 if [[ "${line_trimmed}" != *=* ]]; then
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
32
    log_f "Skipping invalid DNS config line ${LINE_NO} (missing key=value)"
Open commit View diff
32 log_f "Skipping invalid DNS config line ${LINE_NO} (missing key=value)"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
33
    continue
Open commit View diff
33 continue
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
34
  fi
Open commit View diff
34 fi
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
35
  KEY="${line_trimmed%%=*}"
Open commit View diff
35 KEY="${line_trimmed%%=*}"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
36
  VALUE="${line_trimmed#*=}"
Open commit View diff
36 VALUE="${line_trimmed#*=}"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
37
  KEY="$(printf '%s' "${KEY}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
Open commit View diff
37 KEY="$(printf '%s' "${KEY}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
38
  VALUE="$(printf '%s' "${VALUE}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
Open commit View diff
38 VALUE="$(printf '%s' "${VALUE}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
39
  if [[ -z "${KEY}" ]]; then
Open commit View diff
39 if [[ -z "${KEY}" ]]; then
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
40
    log_f "Skipping invalid DNS config line ${LINE_NO} (empty key)"
Open commit View diff
40 log_f "Skipping invalid DNS config line ${LINE_NO} (empty key)"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
41
    continue
Open commit View diff
41 continue
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
42
  fi
Open commit View diff
42 fi
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
43
  if [[ "${VALUE}" =~ ^\".*\"$ ]]; then
Open commit View diff
43 if [[ "${VALUE}" =~ ^\".*\"$ ]]; then
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
44
    VALUE="${VALUE:1:-1}"
Open commit View diff
44 VALUE="${VALUE:1:-1}"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
45
  elif [[ "${VALUE}" =~ ^\'.*\'$ ]]; then
Open commit View diff
45 elif [[ "${VALUE}" =~ ^\'.*\'$ ]]; then
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
46
    VALUE="${VALUE:1:-1}"
Open commit View diff
46 VALUE="${VALUE:1:-1}"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
47
  fi
Open commit View diff
47 fi
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
48
  export "${KEY}"="${VALUE}"
Open commit View diff
48 export "${KEY}"="${VALUE}"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
49
  log_f "Exported DNS config key ${KEY}"
Open commit View diff
49 log_f "Exported DNS config key ${KEY}"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
50
Open commit View diff
50
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
51
done < "${CONFIG_PATH}"
Open commit View diff
51 done < "${CONFIG_PATH}"
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
52
Open commit View diff
52
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
53
if [[ $__dns_loader_standalone -eq 1 ]]; then
Open commit View diff
53 if [[ $__dns_loader_standalone -eq 1 ]]; then
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
54
  exit 0
Open commit View diff
54 exit 0
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
55
else
Open commit View diff
55 else
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
56
  return 0
Open commit View diff
56 return 0
same change 890295b

Add DNS-01 challenge support with configuration files and scripts

Full commit hash
890295bbfc0a1c29ebf171e1f15581f0ad1f6ade
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
57
fi
Open commit View diff
57 fi