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/phpfpm/docker-entrypoint.sh

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

docker-entrypoint.sh on main
Author Date Commit Line Code
andryyy over 9 years ago d891bc8

Docs

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

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
2
Open commit View diff
2
André about 8 years ago 6ded3db

[API] Allow to set API options in mailcow.conf, fixes #1457

Full commit hash
6ded3dbd9552a37af0ebbf561759d35c38ee3f28
Author
André <[email protected]>
Date
about 8 years ago
Selected line
3
function array_by_comma { local IFS=","; echo "$*"; }
Open commit View diff
3 function array_by_comma { local IFS=","; echo "$*"; }
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
4
Open commit View diff
4
andryyy about 9 years ago 653d23a

Migrate some settings and DKIM keys to Redis when starting

Full commit hash
653d23a843cc981bc8847d815a0a46ab5498510b
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
5
# Wait for containers
Open commit View diff
5 # Wait for containers
Niklas Meyer almost 2 years ago b70bcd3

containers: use mariadb-admin instead of deprecated mysqladmin (#6026)

Full commit hash
b70bcd36fbe84136285ccbce92fa7839f830e350
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
6
while ! mariadb-admin status --ssl=false --socket=/var/run/mysqld/mysqld.sock -u${DBUSER} -p${DBPASS} --silent; do
Open commit View diff
6 while ! mariadb-admin status --ssl=false --socket=/var/run/mysqld/mysqld.sock -u${DBUSER} -p${DBPASS} --silent; do
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
7
  echo "Waiting for SQL..."
Open commit View diff
7 echo "Waiting for SQL..."
andryyy about 9 years ago 653d23a

Migrate some settings and DKIM keys to Redis when starting

Full commit hash
653d23a843cc981bc8847d815a0a46ab5498510b
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
8
  sleep 2
Open commit View diff
8 sleep 2
same change 653d23a

Migrate some settings and DKIM keys to Redis when starting

Full commit hash
653d23a843cc981bc8847d815a0a46ab5498510b
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
9
done
Open commit View diff
9 done
same change 653d23a

Migrate some settings and DKIM keys to Redis when starting

Full commit hash
653d23a843cc981bc8847d815a0a46ab5498510b
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
10
Open commit View diff
10
andryyy over 6 years ago f6b3a6e

[PHP-FPM] Check if master, write to Redis master only

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

[PHP-FPM] Check if master, write to Redis master only

Full commit hash
f6b3a6e87454b1fe812513a4c76181d071f15ff4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
12
if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
Open commit View diff
12 if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
FreddleSpl0it almost 2 years ago c62b467

[PHP-FPM] Use redis as session store

Full commit hash
c62b467ac4144fb98a1fe39ca90613ec1358cb90
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
13
  REDIS_HOST=$REDIS_SLAVEOF_IP
Open commit View diff
13 REDIS_HOST=$REDIS_SLAVEOF_IP
same change c62b467

[PHP-FPM] Use redis as session store

Full commit hash
c62b467ac4144fb98a1fe39ca90613ec1358cb90
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
14
  REDIS_PORT=$REDIS_SLAVEOF_PORT
Open commit View diff
14 REDIS_PORT=$REDIS_SLAVEOF_PORT
andryyy over 6 years ago f6b3a6e

[PHP-FPM] Check if master, write to Redis master only

Full commit hash
f6b3a6e87454b1fe812513a4c76181d071f15ff4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
15
else
Open commit View diff
15 else
FreddleSpl0it almost 2 years ago c62b467

[PHP-FPM] Use redis as session store

Full commit hash
c62b467ac4144fb98a1fe39ca90613ec1358cb90
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
16
  REDIS_HOST="redis"
Open commit View diff
16 REDIS_HOST="redis"
same change c62b467

[PHP-FPM] Use redis as session store

Full commit hash
c62b467ac4144fb98a1fe39ca90613ec1358cb90
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
17
  REDIS_PORT="6379"
Open commit View diff
17 REDIS_PORT="6379"
andryyy over 6 years ago f6b3a6e

[PHP-FPM] Check if master, write to Redis master only

Full commit hash
f6b3a6e87454b1fe812513a4c76181d071f15ff4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
18
fi
Open commit View diff
18 fi
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
19
REDIS_CMDLINE="redis-cli -h ${REDIS_HOST} -p ${REDIS_PORT} -a ${REDISPASS} --no-auth-warning"
Open commit View diff
19 REDIS_CMDLINE="redis-cli -h ${REDIS_HOST} -p ${REDIS_PORT} -a ${REDISPASS} --no-auth-warning"
andryyy over 6 years ago f6b3a6e

[PHP-FPM] Check if master, write to Redis master only

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

[PHP-FPM] Check if master, write to Redis master only

Full commit hash
f6b3a6e87454b1fe812513a4c76181d071f15ff4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
21
until [[ $(${REDIS_CMDLINE} PING) == "PONG" ]]; do
Open commit View diff
21 until [[ $(${REDIS_CMDLINE} PING) == "PONG" ]]; do
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
22
  echo "Waiting for Redis..."
Open commit View diff
22 echo "Waiting for Redis..."
andryyy about 9 years ago 653d23a

Migrate some settings and DKIM keys to Redis when starting

Full commit hash
653d23a843cc981bc8847d815a0a46ab5498510b
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
23
  sleep 2
Open commit View diff
23 sleep 2
same change 653d23a

Migrate some settings and DKIM keys to Redis when starting

Full commit hash
653d23a843cc981bc8847d815a0a46ab5498510b
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
24
done
Open commit View diff
24 done
same change 653d23a

Migrate some settings and DKIM keys to Redis when starting

Full commit hash
653d23a843cc981bc8847d815a0a46ab5498510b
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
25
Open commit View diff
25
FreddleSpl0it almost 2 years ago c62b467

[PHP-FPM] Use redis as session store

Full commit hash
c62b467ac4144fb98a1fe39ca90613ec1358cb90
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
26
# Set redis session store
Open commit View diff
26 # Set redis session store
same change c62b467

[PHP-FPM] Use redis as session store

Full commit hash
c62b467ac4144fb98a1fe39ca90613ec1358cb90
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
27
echo -n '
Open commit View diff
27 echo -n '
same change c62b467

[PHP-FPM] Use redis as session store

Full commit hash
c62b467ac4144fb98a1fe39ca90613ec1358cb90
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
28
session.save_handler = redis
Open commit View diff
28 session.save_handler = redis
FreddleSpl0it over 1 year ago 89fb132

Enable password protection for Redis

Full commit hash
89fb1322c6f486a9883e6435a73537b13fbf3582
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
29
session.save_path = "tcp://'${REDIS_HOST}':'${REDIS_PORT}'?auth='${REDISPASS}'"
Open commit View diff
29 session.save_path = "tcp://'${REDIS_HOST}':'${REDIS_PORT}'?auth='${REDISPASS}'"
FreddleSpl0it almost 2 years ago c62b467

[PHP-FPM] Use redis as session store

Full commit hash
c62b467ac4144fb98a1fe39ca90613ec1358cb90
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
30
' > /usr/local/etc/php/conf.d/session_store.ini
Open commit View diff
30 ' > /usr/local/etc/php/conf.d/session_store.ini
same change c62b467

[PHP-FPM] Use redis as session store

Full commit hash
c62b467ac4144fb98a1fe39ca90613ec1358cb90
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
31
Open commit View diff
31
andryyy about 6 years ago 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
32
# Check mysql_upgrade (master and slave)
Open commit View diff
32 # Check mysql_upgrade (master and slave)
andryyy over 7 years ago 04b699a

[PHP-FPM] Trigger mysql_upgrade

Full commit hash
04b699a3c7cef6c5ad9f2efc202bbe376ad299b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
33
CONTAINER_ID=
Open commit View diff
33 CONTAINER_ID=
andryyy over 7 years ago ffed14c

[PHP-FPM] Fix SQL upgrade script

Full commit hash
ffed14c277a2edac9623a8defd4a036cf5ce542a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
34
until [[ ! -z "${CONTAINER_ID}" ]] && [[ "${CONTAINER_ID}" =~ ^[[:alnum:]]*$ ]]; do
Open commit View diff
34 until [[ ! -z "${CONTAINER_ID}" ]] && [[ "${CONTAINER_ID}" =~ ^[[:alnum:]]*$ ]]; do
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
35
  CONTAINER_ID=$(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}" 2> /dev/null | jq -rc "select( .name | tostring | contains(\"mysql-mailcow\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id" 2> /dev/null)
Open commit View diff
35 CONTAINER_ID=$(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}" 2> /dev/null | jq -rc "select( .name | tostring | contains(\"mysql-mailcow\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id" 2> /dev/null)
Niklas Meyer about 2 years ago 9b478b3

php: Rebase on Debian 12 (#5951)

Full commit hash
9b478b3859f0261f69110b06822acc23055d5362
Author
Niklas Meyer <[email protected]>
Date
about 2 years ago
Selected line
36
  echo "Could not get mysql-mailcow container id... trying again"
Open commit View diff
36 echo "Could not get mysql-mailcow container id... trying again"
andryyy over 5 years ago fa9c584

[PHP-FPM] Add sleep to loop

Full commit hash
fa9c584912cad18cdc8b9ab28217a7b5fa2bbc23
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
37
  sleep 2
Open commit View diff
37 sleep 2
andryyy over 7 years ago ffed14c

[PHP-FPM] Fix SQL upgrade script

Full commit hash
ffed14c277a2edac9623a8defd4a036cf5ce542a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
38
done
Open commit View diff
38 done
same change ffed14c

[PHP-FPM] Fix SQL upgrade script

Full commit hash
ffed14c277a2edac9623a8defd4a036cf5ce542a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
39
echo "MySQL @ ${CONTAINER_ID}"
Open commit View diff
39 echo "MySQL @ ${CONTAINER_ID}"
andryyy almost 7 years ago 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
40
SQL_LOOP_C=0
Open commit View diff
40 SQL_LOOP_C=0
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
41
SQL_CHANGED=0
Open commit View diff
41 SQL_CHANGED=0
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
42
until [[ ${SQL_UPGRADE_STATUS} == 'success' ]]; do
Open commit View diff
42 until [[ ${SQL_UPGRADE_STATUS} == 'success' ]]; do
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
43
  if [ ${SQL_LOOP_C} -gt 4 ]; then
Open commit View diff
43 if [ ${SQL_LOOP_C} -gt 4 ]; then
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
44
    echo "Tried to upgrade MySQL and failed, giving up after ${SQL_LOOP_C} retries and starting container (oops, not good)"
Open commit View diff
44 echo "Tried to upgrade MySQL and failed, giving up after ${SQL_LOOP_C} retries and starting container (oops, not good)"
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
45
    break
Open commit View diff
45 break
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
46
  fi
Open commit View diff
46 fi
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
47
  SQL_FULL_UPGRADE_RETURN=$(curl --silent --insecure -XPOST https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${CONTAINER_ID}/exec -d '{"cmd":"system", "task":"mysql_upgrade"}' --silent -H 'Content-type: application/json')
Open commit View diff
47 SQL_FULL_UPGRADE_RETURN=$(curl --silent --insecure -XPOST https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${CONTAINER_ID}/exec -d '{"cmd":"system", "task":"mysql_upgrade"}' --silent -H 'Content-type: application/json')
andryyy almost 7 years ago 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
48
  SQL_UPGRADE_STATUS=$(echo ${SQL_FULL_UPGRADE_RETURN} | jq -r .type)
Open commit View diff
48 SQL_UPGRADE_STATUS=$(echo ${SQL_FULL_UPGRADE_RETURN} | jq -r .type)
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
49
  SQL_LOOP_C=$((SQL_LOOP_C+1))
Open commit View diff
49 SQL_LOOP_C=$((SQL_LOOP_C+1))
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
50
  echo "SQL upgrade iteration #${SQL_LOOP_C}"
Open commit View diff
50 echo "SQL upgrade iteration #${SQL_LOOP_C}"
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
51
  if [[ ${SQL_UPGRADE_STATUS} == 'warning' ]]; then
Open commit View diff
51 if [[ ${SQL_UPGRADE_STATUS} == 'warning' ]]; then
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
52
    SQL_CHANGED=1
Open commit View diff
52 SQL_CHANGED=1
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
53
    echo "MySQL applied an upgrade, debug output:"
Open commit View diff
53 echo "MySQL applied an upgrade, debug output:"
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
54
    echo ${SQL_FULL_UPGRADE_RETURN}
Open commit View diff
54 echo ${SQL_FULL_UPGRADE_RETURN}
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
55
    sleep 3
Open commit View diff
55 sleep 3
Niklas Meyer almost 2 years ago b70bcd3

containers: use mariadb-admin instead of deprecated mysqladmin (#6026)

Full commit hash
b70bcd36fbe84136285ccbce92fa7839f830e350
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
56
    while ! mariadb-admin status --ssl=false --socket=/var/run/mysqld/mysqld.sock -u${DBUSER} -p${DBPASS} --silent; do
Open commit View diff
56 while ! mariadb-admin status --ssl=false --socket=/var/run/mysqld/mysqld.sock -u${DBUSER} -p${DBPASS} --silent; do
andryyy almost 7 years ago 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
57
      echo "Waiting for SQL to return, please wait"
Open commit View diff
57 echo "Waiting for SQL to return, please wait"
andryyy over 7 years ago ffed14c

[PHP-FPM] Fix SQL upgrade script

Full commit hash
ffed14c277a2edac9623a8defd4a036cf5ce542a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
58
      sleep 2
Open commit View diff
58 sleep 2
same change ffed14c

[PHP-FPM] Fix SQL upgrade script

Full commit hash
ffed14c277a2edac9623a8defd4a036cf5ce542a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
59
    done
Open commit View diff
59 done
andryyy almost 7 years ago 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
60
    continue
Open commit View diff
60 continue
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
61
  elif [[ ${SQL_UPGRADE_STATUS} == 'success' ]]; then
Open commit View diff
61 elif [[ ${SQL_UPGRADE_STATUS} == 'success' ]]; then
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
62
    echo "MySQL is up-to-date - debug output:"
Open commit View diff
62 echo "MySQL is up-to-date - debug output:"
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
63
    echo ${SQL_FULL_UPGRADE_RETURN}
Open commit View diff
63 echo ${SQL_FULL_UPGRADE_RETURN}
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
64
  else
Open commit View diff
64 else
andryyy almost 7 years ago 8c26371

[SQL upgrade] Catch more errors

Full commit hash
8c26371d6dbb0eea6e01b6de97c768092985e6df
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
65
    echo "No valid reponse for mysql_upgrade was received, debug output:"
Open commit View diff
65 echo "No valid reponse for mysql_upgrade was received, debug output:"
same change 8c26371

[SQL upgrade] Catch more errors

Full commit hash
8c26371d6dbb0eea6e01b6de97c768092985e6df
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
66
    echo ${SQL_FULL_UPGRADE_RETURN}
Open commit View diff
66 echo ${SQL_FULL_UPGRADE_RETURN}
andryyy almost 7 years ago 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
67
  fi
Open commit View diff
67 fi
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
68
done
Open commit View diff
68 done
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
69
Open commit View diff
69
andryyy about 6 years ago 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
70
# doing post-installation stuff, if SQL was upgraded (master and slave)
Open commit View diff
70 # doing post-installation stuff, if SQL was upgraded (master and slave)
andryyy almost 7 years ago 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
71
if [ ${SQL_CHANGED} -eq 1 ]; then
Open commit View diff
71 if [ ${SQL_CHANGED} -eq 1 ]; then
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
72
  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}" 2> /dev/null | jq -rc "select( .name | tostring | contains(\"postfix-mailcow\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id" 2> /dev/null)
Open commit View diff
72 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}" 2> /dev/null | jq -rc "select( .name | tostring | contains(\"postfix-mailcow\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id" 2> /dev/null)
andryyy almost 6 years ago c9fb251

[PHP-FPM] Fix lookup of Postfix container when SQL applied an update

Full commit hash
c9fb2517a2abe0e68ff3dcb0a4f350fb4d965661
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
73
  if [[ -z "${POSTFIX}" ]] || ! [[ "${POSTFIX}" =~ ^[[:alnum:]]*$ ]]; then
Open commit View diff
73 if [[ -z "${POSTFIX}" ]] || ! [[ "${POSTFIX}" =~ ^[[:alnum:]]*$ ]]; then
andryyy almost 7 years ago 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
74
    echo "Could not determine Postfix container ID, skipping Postfix restart."
Open commit View diff
74 echo "Could not determine Postfix container ID, skipping Postfix restart."
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
75
  else
Open commit View diff
75 else
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
76
    echo "Restarting Postfix"
Open commit View diff
76 echo "Restarting 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
77
    curl -X POST --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${POSTFIX}/restart | jq -r '.msg'
Open commit View diff
77 curl -X POST --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${POSTFIX}/restart | jq -r '.msg'
andryyy almost 7 years ago 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
78
    echo "Sleeping 5 seconds..."
Open commit View diff
78 echo "Sleeping 5 seconds..."
same change 5ae05b5

[SQL Upgrade] Fix process of SQL upgrade, wait for command to complete and do not use pipe communication model

Full commit hash
5ae05b5ec05312a66f1606d31ce8f94962b28f79
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
79
    sleep 5
Open commit View diff
79 sleep 5
andryyy over 7 years ago 04b699a

[PHP-FPM] Trigger mysql_upgrade

Full commit hash
04b699a3c7cef6c5ad9f2efc202bbe376ad299b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
80
  fi
Open commit View diff
80 fi
same change 04b699a

[PHP-FPM] Trigger mysql_upgrade

Full commit hash
04b699a3c7cef6c5ad9f2efc202bbe376ad299b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
81
fi
Open commit View diff
81 fi
same change 04b699a

[PHP-FPM] Trigger mysql_upgrade

Full commit hash
04b699a3c7cef6c5ad9f2efc202bbe376ad299b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
82
Open commit View diff
82
andryyy about 6 years ago 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
83
# Check mysql tz import (master and slave)
Open commit View diff
83 # Check mysql tz import (master and slave)
DerLinkman over 1 year ago 2f93f1d

os: fixes for newer mariadb-client versions (especially on alpine 3.21)

Full commit hash
2f93f1d0c5b9642190c1358a03038be4c3f4bb43
Author
DerLinkman <[email protected]>
Date
over 1 year ago
Selected line
84
TZ_CHECK=$(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT CONVERT_TZ('2019-11-02 23:33:00','Europe/Berlin','UTC') AS time;" -BN 2> /dev/null)
Open commit View diff
84 TZ_CHECK=$(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT CONVERT_TZ('2019-11-02 23:33:00','Europe/Berlin','UTC') AS time;" -BN 2> /dev/null)
andryyy over 6 years ago 0f8cc4b

[PHP-FPM] Fix check for tz import

Full commit hash
0f8cc4bef8a552b9c89e4cc65c42817de3796534
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
85
if [[ -z ${TZ_CHECK} ]] || [[ "${TZ_CHECK}" == "NULL" ]]; then
Open commit View diff
85 if [[ -z ${TZ_CHECK} ]] || [[ "${TZ_CHECK}" == "NULL" ]]; then
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
86
  SQL_FULL_TZINFO_IMPORT_RETURN=$(curl --silent --insecure -XPOST https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${CONTAINER_ID}/exec -d '{"cmd":"system", "task":"mysql_tzinfo_to_sql"}' --silent -H 'Content-type: application/json')
Open commit View diff
86 SQL_FULL_TZINFO_IMPORT_RETURN=$(curl --silent --insecure -XPOST https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${CONTAINER_ID}/exec -d '{"cmd":"system", "task":"mysql_tzinfo_to_sql"}' --silent -H 'Content-type: application/json')
andryyy over 6 years ago 322dc16

[PHP-FPM] Check if tz data import is necessary

Full commit hash
322dc169e62c7882f8d26dde55d03da8fa139a71
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
87
  echo "MySQL mysql_tzinfo_to_sql - debug output:"
Open commit View diff
87 echo "MySQL mysql_tzinfo_to_sql - debug output:"
same change 322dc16

[PHP-FPM] Check if tz data import is necessary

Full commit hash
322dc169e62c7882f8d26dde55d03da8fa139a71
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
88
  echo ${SQL_FULL_TZINFO_IMPORT_RETURN}
Open commit View diff
88 echo ${SQL_FULL_TZINFO_IMPORT_RETURN}
same change 322dc16

[PHP-FPM] Check if tz data import is necessary

Full commit hash
322dc169e62c7882f8d26dde55d03da8fa139a71
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
89
fi
Open commit View diff
89 fi
andryyy over 6 years ago 6565e99

[MySQL, PHP, DockerAPI] Move mysql_tzinfo_to_sql trigger to php-fpm-mailcow to prevent race condition on slow disks (known bug @ MariaDB)

Full commit hash
6565e994bb785c582019afea245393aa56e2a09c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
90
Open commit View diff
90
andryyy about 6 years ago 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
91
if [[ "${MASTER}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
Open commit View diff
91 if [[ "${MASTER}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
92
  echo "We are master, preparing..."
Open commit View diff
92 echo "We are master, preparing..."
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
93
  # Set a default release format
Open commit View diff
93 # Set a default release format
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
94
  if [[ -z $(${REDIS_CMDLINE} --raw GET Q_RELEASE_FORMAT) ]]; then
Open commit View diff
94 if [[ -z $(${REDIS_CMDLINE} --raw GET Q_RELEASE_FORMAT) ]]; then
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
95
    ${REDIS_CMDLINE} --raw SET Q_RELEASE_FORMAT raw
Open commit View diff
95 ${REDIS_CMDLINE} --raw SET Q_RELEASE_FORMAT raw
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
96
  fi
Open commit View diff
96 fi
andryyy about 9 years ago 653d23a

Migrate some settings and DKIM keys to Redis when starting

Full commit hash
653d23a843cc981bc8847d815a0a46ab5498510b
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
97
Open commit View diff
97
andryyy about 6 years ago 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
98
  # Set max age of q items - if unset
Open commit View diff
98 # Set max age of q items - if unset
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
99
  if [[ -z $(${REDIS_CMDLINE} --raw GET Q_MAX_AGE) ]]; then
Open commit View diff
99 if [[ -z $(${REDIS_CMDLINE} --raw GET Q_MAX_AGE) ]]; then
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
100
    ${REDIS_CMDLINE} --raw SET Q_MAX_AGE 365
Open commit View diff
100 ${REDIS_CMDLINE} --raw SET Q_MAX_AGE 365
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
101
  fi
Open commit View diff
101 fi
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
102
Open commit View diff
102
andryyy over 5 years ago efd30df

[PHP-FPM] Add default password policy

Full commit hash
efd30df735069026d8ac46f8ea683e3e3ac9c5c6
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
103
  # Set default password policy - if unset
Open commit View diff
103 # Set default password policy - if unset
same change efd30df

[PHP-FPM] Add default password policy

Full commit hash
efd30df735069026d8ac46f8ea683e3e3ac9c5c6
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
104
  if [[ -z $(${REDIS_CMDLINE} --raw HGET PASSWD_POLICY length) ]]; then
Open commit View diff
104 if [[ -z $(${REDIS_CMDLINE} --raw HGET PASSWD_POLICY length) ]]; then
same change efd30df

[PHP-FPM] Add default password policy

Full commit hash
efd30df735069026d8ac46f8ea683e3e3ac9c5c6
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
105
    ${REDIS_CMDLINE} --raw HSET PASSWD_POLICY length 6
Open commit View diff
105 ${REDIS_CMDLINE} --raw HSET PASSWD_POLICY length 6
same change efd30df

[PHP-FPM] Add default password policy

Full commit hash
efd30df735069026d8ac46f8ea683e3e3ac9c5c6
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
106
    ${REDIS_CMDLINE} --raw HSET PASSWD_POLICY chars 0
Open commit View diff
106 ${REDIS_CMDLINE} --raw HSET PASSWD_POLICY chars 0
same change efd30df

[PHP-FPM] Add default password policy

Full commit hash
efd30df735069026d8ac46f8ea683e3e3ac9c5c6
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
107
    ${REDIS_CMDLINE} --raw HSET PASSWD_POLICY special_chars 0
Open commit View diff
107 ${REDIS_CMDLINE} --raw HSET PASSWD_POLICY special_chars 0
same change efd30df

[PHP-FPM] Add default password policy

Full commit hash
efd30df735069026d8ac46f8ea683e3e3ac9c5c6
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
108
    ${REDIS_CMDLINE} --raw HSET PASSWD_POLICY lowerupper 0
Open commit View diff
108 ${REDIS_CMDLINE} --raw HSET PASSWD_POLICY lowerupper 0
same change efd30df

[PHP-FPM] Add default password policy

Full commit hash
efd30df735069026d8ac46f8ea683e3e3ac9c5c6
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
109
    ${REDIS_CMDLINE} --raw HSET PASSWD_POLICY numbers 0
Open commit View diff
109 ${REDIS_CMDLINE} --raw HSET PASSWD_POLICY numbers 0
same change efd30df

[PHP-FPM] Add default password policy

Full commit hash
efd30df735069026d8ac46f8ea683e3e3ac9c5c6
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
110
  fi
Open commit View diff
110 fi
same change efd30df

[PHP-FPM] Add default password policy

Full commit hash
efd30df735069026d8ac46f8ea683e3e3ac9c5c6
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
111
Open commit View diff
111
andryyy about 6 years ago 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
112
  # Trigger db init
Open commit View diff
112 # Trigger db init
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
113
  echo "Running DB init..."
Open commit View diff
113 echo "Running DB init..."
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
114
  php -c /usr/local/etc/php -f /web/inc/init_db.inc.php
Open commit View diff
114 php -c /usr/local/etc/php -f /web/inc/init_db.inc.php
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
115
Open commit View diff
115
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
116
  # Recreating domain map
Open commit View diff
116 # Recreating domain map
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
117
  echo "Rebuilding domain map in Redis..."
Open commit View diff
117 echo "Rebuilding domain map in Redis..."
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
118
  declare -a DOMAIN_ARR
Open commit View diff
118 declare -a DOMAIN_ARR
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
119
    ${REDIS_CMDLINE} DEL DOMAIN_MAP > /dev/null
Open commit View diff
119 ${REDIS_CMDLINE} DEL DOMAIN_MAP > /dev/null
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
120
  while read line
Open commit View diff
120 while read line
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
121
  do
Open commit View diff
121 do
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
122
    DOMAIN_ARR+=("$line")
Open commit View diff
122 DOMAIN_ARR+=("$line")
DerLinkman over 1 year ago 2f93f1d

os: fixes for newer mariadb-client versions (especially on alpine 3.21)

Full commit hash
2f93f1d0c5b9642190c1358a03038be4c3f4bb43
Author
DerLinkman <[email protected]>
Date
over 1 year ago
Selected line
123
  done < <(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT domain FROM domain" -Bs)
Open commit View diff
123 done < <(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT domain FROM domain" -Bs)
andryyy about 6 years ago 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
124
  while read line
Open commit View diff
124 while read line
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
125
  do
Open commit View diff
125 do
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
126
    DOMAIN_ARR+=("$line")
Open commit View diff
126 DOMAIN_ARR+=("$line")
DerLinkman over 1 year ago 2f93f1d

os: fixes for newer mariadb-client versions (especially on alpine 3.21)

Full commit hash
2f93f1d0c5b9642190c1358a03038be4c3f4bb43
Author
DerLinkman <[email protected]>
Date
over 1 year ago
Selected line
127
  done < <(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT alias_domain FROM alias_domain" -Bs)
Open commit View diff
127 done < <(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT alias_domain FROM alias_domain" -Bs)
andryyy about 6 years ago 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
128
Open commit View diff
128
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
129
  if [[ ! -z ${DOMAIN_ARR} ]]; then
Open commit View diff
129 if [[ ! -z ${DOMAIN_ARR} ]]; then
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
130
  for domain in "${DOMAIN_ARR[@]}"; do
Open commit View diff
130 for domain in "${DOMAIN_ARR[@]}"; do
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
131
    ${REDIS_CMDLINE} HSET DOMAIN_MAP ${domain} 1 > /dev/null
Open commit View diff
131 ${REDIS_CMDLINE} HSET DOMAIN_MAP ${domain} 1 > /dev/null
André about 8 years ago 6ded3db

[API] Allow to set API options in mailcow.conf, fixes #1457

Full commit hash
6ded3dbd9552a37af0ebbf561759d35c38ee3f28
Author
André <[email protected]>
Date
about 8 years ago
Selected line
132
  done
Open commit View diff
132 done
andryyy about 6 years ago 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
133
  fi
Open commit View diff
133 fi
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
134
Open commit View diff
134
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
135
  # Set API options if env vars are not empty
Open commit View diff
135 # Set API options if env vars are not empty
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
136
  if [[ ${API_ALLOW_FROM} != "invalid" ]] && [[ ! -z ${API_ALLOW_FROM} ]]; then
Open commit View diff
136 if [[ ${API_ALLOW_FROM} != "invalid" ]] && [[ ! -z ${API_ALLOW_FROM} ]]; then
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
137
    IFS=',' read -r -a API_ALLOW_FROM_ARR <<< "${API_ALLOW_FROM}"
Open commit View diff
137 IFS=',' read -r -a API_ALLOW_FROM_ARR <<< "${API_ALLOW_FROM}"
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
138
    declare -a VALIDATED_API_ALLOW_FROM_ARR
Open commit View diff
138 declare -a VALIDATED_API_ALLOW_FROM_ARR
monsterry about 6 years ago 3ac7425

[Config] Allow CIDR notation for API_ALLOW_FROM (#3655)

Full commit hash
3ac74258dbfc2c661558287aca0add40e989b46b
Author
monsterry <[email protected]>
Date
about 6 years ago
Selected line
139
    REGEX_IP6='^([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}(/([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8]))?$'
Open commit View diff
139 REGEX_IP6='^([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}(/([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8]))?$'
same change 3ac7425

[Config] Allow CIDR notation for API_ALLOW_FROM (#3655)

Full commit hash
3ac74258dbfc2c661558287aca0add40e989b46b
Author
monsterry <[email protected]>
Date
about 6 years ago
Selected line
140
    REGEX_IP4='^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+(/([0-9]|[1-2][0-9]|3[0-2]))?$'
Open commit View diff
140 REGEX_IP4='^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+(/([0-9]|[1-2][0-9]|3[0-2]))?$'
andryyy about 6 years ago 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
141
    for IP in "${API_ALLOW_FROM_ARR[@]}"; do
Open commit View diff
141 for IP in "${API_ALLOW_FROM_ARR[@]}"; do
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
142
      if [[ ${IP} =~ ${REGEX_IP6} ]] || [[ ${IP} =~ ${REGEX_IP4} ]]; then
Open commit View diff
142 if [[ ${IP} =~ ${REGEX_IP6} ]] || [[ ${IP} =~ ${REGEX_IP4} ]]; then
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
143
        VALIDATED_API_ALLOW_FROM_ARR+=("${IP}")
Open commit View diff
143 VALIDATED_API_ALLOW_FROM_ARR+=("${IP}")
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
144
      fi
Open commit View diff
144 fi
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
145
    done
Open commit View diff
145 done
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
146
    VALIDATED_IPS=$(array_by_comma ${VALIDATED_API_ALLOW_FROM_ARR[*]})
Open commit View diff
146 VALIDATED_IPS=$(array_by_comma ${VALIDATED_API_ALLOW_FROM_ARR[*]})
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
147
    if [[ ! -z ${VALIDATED_IPS} ]]; then
Open commit View diff
147 if [[ ! -z ${VALIDATED_IPS} ]]; then
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
148
      if [[ ${API_KEY} != "invalid" ]] && [[ ! -z ${API_KEY} ]]; then
Open commit View diff
148 if [[ ${API_KEY} != "invalid" ]] && [[ ! -z ${API_KEY} ]]; then
DerLinkman over 1 year ago 2f93f1d

os: fixes for newer mariadb-client versions (especially on alpine 3.21)

Full commit hash
2f93f1d0c5b9642190c1358a03038be4c3f4bb43
Author
DerLinkman <[email protected]>
Date
over 1 year ago
Selected line
149
        mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} << EOF
Open commit View diff
149 mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} << EOF
andryyy over 6 years ago 4efc35a

[PHP-FPM] Add API_KEY_READ_ONLY generation

Full commit hash
4efc35abdea01270213db68b1f649a8d273e1172
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
150
DELETE FROM api WHERE access = 'rw';
Open commit View diff
150 DELETE FROM api WHERE access = 'rw';
andryyy over 6 years ago 730fa16

[PHP-FPM, Config] API key generated via mailcow.conf as rw access

Full commit hash
730fa16a69b9c730a311fac089472e31c43ab9e1
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
151
INSERT INTO api (api_key, active, allow_from, access) VALUES ("${API_KEY}", "1", "${VALIDATED_IPS}", "rw");
Open commit View diff
151 INSERT INTO api (api_key, active, allow_from, access) VALUES ("${API_KEY}", "1", "${VALIDATED_IPS}", "rw");
André about 8 years ago 6ded3db

[API] Allow to set API options in mailcow.conf, fixes #1457

Full commit hash
6ded3dbd9552a37af0ebbf561759d35c38ee3f28
Author
André <[email protected]>
Date
about 8 years ago
Selected line
152
EOF
Open commit View diff
152 EOF
andryyy about 6 years ago 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
153
      fi
Open commit View diff
153 fi
same change 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
154
      if [[ ${API_KEY_READ_ONLY} != "invalid" ]] && [[ ! -z ${API_KEY_READ_ONLY} ]]; then
Open commit View diff
154 if [[ ${API_KEY_READ_ONLY} != "invalid" ]] && [[ ! -z ${API_KEY_READ_ONLY} ]]; then
DerLinkman over 1 year ago 2f93f1d

os: fixes for newer mariadb-client versions (especially on alpine 3.21)

Full commit hash
2f93f1d0c5b9642190c1358a03038be4c3f4bb43
Author
DerLinkman <[email protected]>
Date
over 1 year ago
Selected line
155
        mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} << EOF
Open commit View diff
155 mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} << EOF
andryyy over 6 years ago 4efc35a

[PHP-FPM] Add API_KEY_READ_ONLY generation

Full commit hash
4efc35abdea01270213db68b1f649a8d273e1172
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
156
DELETE FROM api WHERE access = 'ro';
Open commit View diff
156 DELETE FROM api WHERE access = 'ro';
same change 4efc35a

[PHP-FPM] Add API_KEY_READ_ONLY generation

Full commit hash
4efc35abdea01270213db68b1f649a8d273e1172
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
157
INSERT INTO api (api_key, active, allow_from, access) VALUES ("${API_KEY_READ_ONLY}", "1", "${VALIDATED_IPS}", "ro");
Open commit View diff
157 INSERT INTO api (api_key, active, allow_from, access) VALUES ("${API_KEY_READ_ONLY}", "1", "${VALIDATED_IPS}", "ro");
same change 4efc35a

[PHP-FPM] Add API_KEY_READ_ONLY generation

Full commit hash
4efc35abdea01270213db68b1f649a8d273e1172
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
158
EOF
Open commit View diff
158 EOF
andryyy about 6 years ago 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
159
      fi
Open commit View diff
159 fi
andryyy over 6 years ago 4efc35a

[PHP-FPM] Add API_KEY_READ_ONLY generation

Full commit hash
4efc35abdea01270213db68b1f649a8d273e1172
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
160
    fi
Open commit View diff
160 fi
André about 8 years ago 6ded3db

[API] Allow to set API options in mailcow.conf, fixes #1457

Full commit hash
6ded3dbd9552a37af0ebbf561759d35c38ee3f28
Author
André <[email protected]>
Date
about 8 years ago
Selected line
161
  fi
Open commit View diff
161 fi
same change 6ded3db

[API] Allow to set API options in mailcow.conf, fixes #1457

Full commit hash
6ded3dbd9552a37af0ebbf561759d35c38ee3f28
Author
André <[email protected]>
Date
about 8 years ago
Selected line
162
Open commit View diff
162
andryyy about 6 years ago 6ea8560

[PHP-FPM] Minor changes to prepare routine

Full commit hash
6ea8560de6c8319669e50e8cdb9c6f174f8fd2b5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
163
  # Create events (master only, STATUS for event on slave will be SLAVESIDE_DISABLED)
Open commit View diff
163 # Create events (master only, STATUS for event on slave will be SLAVESIDE_DISABLED)
DerLinkman over 1 year ago 2f93f1d

os: fixes for newer mariadb-client versions (especially on alpine 3.21)

Full commit hash
2f93f1d0c5b9642190c1358a03038be4c3f4bb43
Author
DerLinkman <[email protected]>
Date
over 1 year ago
Selected line
164
  mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} << EOF
Open commit View diff
164 mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} << EOF
andryyy over 6 years ago d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
165
DROP EVENT IF EXISTS clean_spamalias;
Open commit View diff
165 DROP EVENT IF EXISTS clean_spamalias;
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
166
DELIMITER //
Open commit View diff
166 DELIMITER //
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
167
CREATE EVENT clean_spamalias
Open commit View diff
167 CREATE EVENT clean_spamalias
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
168
ON SCHEDULE EVERY 1 DAY DO
Open commit View diff
168 ON SCHEDULE EVERY 1 DAY DO
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
169
BEGIN
Open commit View diff
169 BEGIN
Josh 8 months ago 0413d26

Allow making spam aliases permanent (#6888)

Full commit hash
0413d268552b845916b94eda54bc3dba0ee12798
Author
Josh <[email protected]>
Date
8 months ago
Selected line
170
  DELETE FROM spamalias WHERE validity < UNIX_TIMESTAMP() AND permanent = 0;
Open commit View diff
170 DELETE FROM spamalias WHERE validity < UNIX_TIMESTAMP() AND permanent = 0;
andryyy over 6 years ago d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
171
END;
Open commit View diff
171 END;
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
172
//
Open commit View diff
172 //
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
173
DELIMITER ;
Open commit View diff
173 DELIMITER ;
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
174
DROP EVENT IF EXISTS clean_oauth2;
Open commit View diff
174 DROP EVENT IF EXISTS clean_oauth2;
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
175
DELIMITER //
Open commit View diff
175 DELIMITER //
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
176
CREATE EVENT clean_oauth2
Open commit View diff
176 CREATE EVENT clean_oauth2
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
177
ON SCHEDULE EVERY 1 DAY DO
Open commit View diff
177 ON SCHEDULE EVERY 1 DAY DO
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
178
BEGIN
Open commit View diff
178 BEGIN
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
179
  DELETE FROM oauth_refresh_tokens WHERE expires < NOW();
Open commit View diff
179 DELETE FROM oauth_refresh_tokens WHERE expires < NOW();
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
180
  DELETE FROM oauth_access_tokens WHERE expires < NOW();
Open commit View diff
180 DELETE FROM oauth_access_tokens WHERE expires < NOW();
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
181
  DELETE FROM oauth_authorization_codes WHERE expires < NOW();
Open commit View diff
181 DELETE FROM oauth_authorization_codes WHERE expires < NOW();
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
182
END;
Open commit View diff
182 END;
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
183
//
Open commit View diff
183 //
same change d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
184
DELIMITER ;
Open commit View diff
184 DELIMITER ;
Michael Kuron over 3 years ago 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
185
DROP EVENT IF EXISTS clean_sasl_log;
Open commit View diff
185 DROP EVENT IF EXISTS clean_sasl_log;
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
186
DELIMITER //
Open commit View diff
186 DELIMITER //
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
187
CREATE EVENT clean_sasl_log
Open commit View diff
187 CREATE EVENT clean_sasl_log
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
188
ON SCHEDULE EVERY 1 DAY DO
Open commit View diff
188 ON SCHEDULE EVERY 1 DAY DO
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
189
BEGIN
Open commit View diff
189 BEGIN
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
190
  DELETE sasl_log.* FROM sasl_log
Open commit View diff
190 DELETE sasl_log.* FROM sasl_log
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
191
    LEFT JOIN (
Open commit View diff
191 LEFT JOIN (
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
192
      SELECT username, service, MAX(datetime) AS lastdate
Open commit View diff
192 SELECT username, service, MAX(datetime) AS lastdate
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
193
      FROM sasl_log
Open commit View diff
193 FROM sasl_log
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
194
      GROUP BY username, service
Open commit View diff
194 GROUP BY username, service
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
195
    ) AS last ON sasl_log.username = last.username AND sasl_log.service = last.service
Open commit View diff
195 ) AS last ON sasl_log.username = last.username AND sasl_log.service = last.service
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
196
    WHERE datetime < DATE_SUB(NOW(), INTERVAL 31 DAY) AND datetime < lastdate;
Open commit View diff
196 WHERE datetime < DATE_SUB(NOW(), INTERVAL 31 DAY) AND datetime < lastdate;
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
197
  DELETE FROM sasl_log
Open commit View diff
197 DELETE FROM sasl_log
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
198
    WHERE username NOT IN (SELECT username FROM mailbox) AND
Open commit View diff
198 WHERE username NOT IN (SELECT username FROM mailbox) AND
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
199
    datetime < DATE_SUB(NOW(), INTERVAL 31 DAY);
Open commit View diff
199 datetime < DATE_SUB(NOW(), INTERVAL 31 DAY);
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
200
END;
Open commit View diff
200 END;
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
201
//
Open commit View diff
201 //
same change 856b3b6

Clean up old sasl_log entries

Full commit hash
856b3b62f2800440d063c9cfc58ae9eaaf1010d3
Author
Michael Kuron <[email protected]>
Date
over 3 years ago
Selected line
202
DELIMITER ;
Open commit View diff
202 DELIMITER ;
andryyy over 6 years ago d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
203
EOF
Open commit View diff
203 EOF
andryyy over 6 years ago f6b3a6e

[PHP-FPM] Check if master, write to Redis master only

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

[PHP-FPM] Check if master, write to Redis master only

Full commit hash
f6b3a6e87454b1fe812513a4c76181d071f15ff4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
205
Open commit View diff
205
same change f6b3a6e

[PHP-FPM] Check if master, write to Redis master only

Full commit hash
f6b3a6e87454b1fe812513a4c76181d071f15ff4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
206
# Create dummy for custom overrides of mailcow style
Open commit View diff
206 # Create dummy for custom overrides of mailcow style
same change f6b3a6e

[PHP-FPM] Check if master, write to Redis master only

Full commit hash
f6b3a6e87454b1fe812513a4c76181d071f15ff4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
207
[[ ! -f /web/css/build/0081-custom-mailcow.css ]] && echo '/* Autogenerated by mailcow */' > /web/css/build/0081-custom-mailcow.css
Open commit View diff
207 [[ ! -f /web/css/build/0081-custom-mailcow.css ]] && echo '/* Autogenerated by mailcow */' > /web/css/build/0081-custom-mailcow.css
andryyy over 6 years ago d091bf7

[PHP-FPM] Create events in docker entrypoint of PHP-FPM

Full commit hash
d091bf76aac3d4551c7ea36ba208828f3c89a124
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
208
Open commit View diff
208
andryyy over 6 years ago 7db5bc0

[PHP-FPM] Fix permissions for global maps

Full commit hash
7db5bc01a474021b980740fbe5d36b86ab478088
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
209
# Fix permissions for global filters
Open commit View diff
209 # Fix permissions for global filters
Niklas Meyer about 2 years ago eea81e2

Revert "php: Rebase on Debian 12" (#5956)

Full commit hash
eea81e21f653730640a87ef265b557a9ee7cddc8
Author
Niklas Meyer <[email protected]>
Date
about 2 years ago
Selected line
210
chown -R 82:82 /global_sieve/*
Open commit View diff
210 chown -R 82:82 /global_sieve/*
andryyy over 6 years ago 7db5bc0

[PHP-FPM] Fix permissions for global maps

Full commit hash
7db5bc01a474021b980740fbe5d36b86ab478088
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
211
Open commit View diff
211
Kristian Feldsam almost 5 years ago 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
212
# Fix permissions on twig cache folder
Open commit View diff
212 # Fix permissions on twig cache folder
Niklas Meyer about 2 years ago eea81e2

Revert "php: Rebase on Debian 12" (#5956)

Full commit hash
eea81e21f653730640a87ef265b557a9ee7cddc8
Author
Niklas Meyer <[email protected]>
Date
about 2 years ago
Selected line
213
chown -R 82:82 /web/templates/cache
Open commit View diff
213 chown -R 82:82 /web/templates/cache
Kristian Feldsam almost 5 years ago 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
214
# Clear cache
Open commit View diff
214 # Clear cache
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
215
find /web/templates/cache/* -not -name '.gitkeep' -delete
Open commit View diff
215 find /web/templates/cache/* -not -name '.gitkeep' -delete
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
216
Open commit View diff
216
andryyy almost 7 years ago b0711db

[Dockerfiles] Rename some files and create hook points

Full commit hash
b0711db48955ace1fed1f2251c3433c3a0b0efe3
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
217
# Run hooks
Open commit View diff
217 # Run hooks
same change b0711db

[Dockerfiles] Rename some files and create hook points

Full commit hash
b0711db48955ace1fed1f2251c3433c3a0b0efe3
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
218
for file in /hooks/*; do
Open commit View diff
218 for file in /hooks/*; do
same change b0711db

[Dockerfiles] Rename some files and create hook points

Full commit hash
b0711db48955ace1fed1f2251c3433c3a0b0efe3
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
219
  if [ -x "${file}" ]; then
Open commit View diff
219 if [ -x "${file}" ]; then
same change b0711db

[Dockerfiles] Rename some files and create hook points

Full commit hash
b0711db48955ace1fed1f2251c3433c3a0b0efe3
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
220
    echo "Running hook ${file}"
Open commit View diff
220 echo "Running hook ${file}"
same change b0711db

[Dockerfiles] Rename some files and create hook points

Full commit hash
b0711db48955ace1fed1f2251c3433c3a0b0efe3
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
221
    "${file}"
Open commit View diff
221 "${file}"
same change b0711db

[Dockerfiles] Rename some files and create hook points

Full commit hash
b0711db48955ace1fed1f2251c3433c3a0b0efe3
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
222
  fi
Open commit View diff
222 fi
same change b0711db

[Dockerfiles] Rename some files and create hook points

Full commit hash
b0711db48955ace1fed1f2251c3433c3a0b0efe3
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
223
done
Open commit View diff
223 done
same change b0711db

[Dockerfiles] Rename some files and create hook points

Full commit hash
b0711db48955ace1fed1f2251c3433c3a0b0efe3
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
224
Open commit View diff
224
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
225
exec "$@"
Open commit View diff
225 exec "$@"