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/dovecot/repl_health.sh

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

repl_health.sh on main
Author Date Commit Line Code
andryyy over 6 years ago 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
1
#!/bin/bash
Open commit View diff
1 #!/bin/bash
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2
Open commit View diff
2
andryyy about 6 years ago 9078031

[Dovecot] WIP: Read env vars for cronjobs from prepared file

Full commit hash
9078031255b8e21cd5bbf9905859788ec0bb9be3
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
3
source /source_env.sh
Open commit View diff
3 source /source_env.sh
same change 9078031

[Dovecot] WIP: Read env vars for cronjobs from prepared file

Full commit hash
9078031255b8e21cd5bbf9905859788ec0bb9be3
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
4
Open commit View diff
4
andryyy over 6 years ago 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
5
# Do not attempt to write to slave
Open commit View diff
5 # Do not attempt to write to slave
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
6
if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
Open commit View diff
6 if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
7
  REDIS_CMDLINE="redis-cli -h ${REDIS_SLAVEOF_IP} -p ${REDIS_SLAVEOF_PORT} -a ${REDISPASS} --no-auth-warning"
Open commit View diff
7 REDIS_CMDLINE="redis-cli -h ${REDIS_SLAVEOF_IP} -p ${REDIS_SLAVEOF_PORT} -a ${REDISPASS} --no-auth-warning"
andryyy over 6 years ago 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
8
else
Open commit View diff
8 else
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
9
  REDIS_CMDLINE="redis-cli -h redis -p 6379 -a ${REDISPASS} --no-auth-warning"
Open commit View diff
9 REDIS_CMDLINE="redis-cli -h redis -p 6379 -a ${REDISPASS} --no-auth-warning"
andryyy over 6 years ago 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
10
fi
Open commit View diff
10 fi
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
11
Open commit View diff
11
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
12
# Is replication active?
Open commit View diff
12 # Is replication active?
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
13
# grep on file is less expensive than doveconf
Open commit View diff
13 # grep on file is less expensive than doveconf
FreddleSpl0it over 2 years ago a310493

[Dovecot] fix repl_health.sh

Full commit hash
a3104934850cd6663c9e7347478f6f8902def03a
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
14
if [ -n ${MAILCOW_REPLICA_IP} ]; then
Open commit View diff
14 if [ -n ${MAILCOW_REPLICA_IP} ]; then
andryyy over 6 years ago 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
15
  ${REDIS_CMDLINE} SET DOVECOT_REPL_HEALTH 1 > /dev/null
Open commit View diff
15 ${REDIS_CMDLINE} SET DOVECOT_REPL_HEALTH 1 > /dev/null
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
16
  exit
Open commit View diff
16 exit
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
17
fi
Open commit View diff
17 fi
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
18
Open commit View diff
18
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
19
FAILED_SYNCS=$(doveadm replicator status | grep "Waiting 'failed' requests" | grep -oE '[0-9]+')
Open commit View diff
19 FAILED_SYNCS=$(doveadm replicator status | grep "Waiting 'failed' requests" | grep -oE '[0-9]+')
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
20
Open commit View diff
20
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
21
# Set amount of failed jobs as DOVECOT_REPL_HEALTH
Open commit View diff
21 # Set amount of failed jobs as DOVECOT_REPL_HEALTH
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
22
# 1 failed job for mailcow.local is expected and healthy
Open commit View diff
22 # 1 failed job for mailcow.local is expected and healthy
andryyy about 6 years ago 9078031

[Dovecot] WIP: Read env vars for cronjobs from prepared file

Full commit hash
9078031255b8e21cd5bbf9905859788ec0bb9be3
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
23
if [[ "${FAILED_SYNCS}" != 0 ]] && [[ "${FAILED_SYNCS}" != 1 ]]; then
Open commit View diff
23 if [[ "${FAILED_SYNCS}" != 0 ]] && [[ "${FAILED_SYNCS}" != 1 ]]; then
andryyy over 6 years ago 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
24
  printf "Dovecot replicator has %d failed jobs\n" "${FAILED_SYNCS}"
Open commit View diff
24 printf "Dovecot replicator has %d failed jobs\n" "${FAILED_SYNCS}"
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
25
  ${REDIS_CMDLINE} SET DOVECOT_REPL_HEALTH "${FAILED_SYNCS}" > /dev/null
Open commit View diff
25 ${REDIS_CMDLINE} SET DOVECOT_REPL_HEALTH "${FAILED_SYNCS}" > /dev/null
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
26
else
Open commit View diff
26 else
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
27
  ${REDIS_CMDLINE} SET DOVECOT_REPL_HEALTH 1 > /dev/null
Open commit View diff
27 ${REDIS_CMDLINE} SET DOVECOT_REPL_HEALTH 1 > /dev/null
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
28
fi
Open commit View diff
28 fi