mirror of
https://github.com/docker-mailserver/docker-mailserver
synced 2024-10-18 10:18:07 +02:00
fix: abort when (jaq) curl fails (#3853)
This commit is contained in:
parent
244c455ca1
commit
23705e6712
@ -39,7 +39,8 @@ function _install_utils() {
|
|||||||
_log 'debug' 'Installing utils sourced from Github'
|
_log 'debug' 'Installing utils sourced from Github'
|
||||||
_log 'trace' 'Installing jaq'
|
_log 'trace' 'Installing jaq'
|
||||||
local JAQ_TAG='v1.3.0'
|
local JAQ_TAG='v1.3.0'
|
||||||
curl -sSfL "https://github.com/01mf02/jaq/releases/download/${JAQ_TAG}/jaq-${JAQ_TAG}-$(uname -m)-unknown-linux-gnu" -o /usr/bin/jaq && chmod +x /usr/bin/jaq
|
curl -sSfL "https://github.com/01mf02/jaq/releases/download/${JAQ_TAG}/jaq-${JAQ_TAG}-$(uname -m)-unknown-linux-gnu" -o /usr/bin/jaq
|
||||||
|
chmod +x /usr/bin/jaq
|
||||||
|
|
||||||
_log 'trace' 'Installing swaks'
|
_log 'trace' 'Installing swaks'
|
||||||
local SWAKS_VERSION='20240103.0'
|
local SWAKS_VERSION='20240103.0'
|
||||||
@ -144,7 +145,7 @@ function _install_dovecot() {
|
|||||||
# when building for another architecture.
|
# when building for another architecture.
|
||||||
if [[ ${DOVECOT_COMMUNITY_REPO} -eq 1 ]] && [[ "$(uname --machine)" == "x86_64" ]]; then
|
if [[ ${DOVECOT_COMMUNITY_REPO} -eq 1 ]] && [[ "$(uname --machine)" == "x86_64" ]]; then
|
||||||
_log 'trace' 'Using Dovecot community repository'
|
_log 'trace' 'Using Dovecot community repository'
|
||||||
curl https://repo.dovecot.org/DOVECOT-REPO-GPG | gpg --import
|
curl -sSfL https://repo.dovecot.org/DOVECOT-REPO-GPG | gpg --import
|
||||||
gpg --export ED409DA1 > /etc/apt/trusted.gpg.d/dovecot.gpg
|
gpg --export ED409DA1 > /etc/apt/trusted.gpg.d/dovecot.gpg
|
||||||
# VERSION_CODENAME sourced from /etc/os-release
|
# VERSION_CODENAME sourced from /etc/os-release
|
||||||
echo "deb https://repo.dovecot.org/ce-2.3-latest/debian/${VERSION_CODENAME} ${VERSION_CODENAME} main" > /etc/apt/sources.list.d/dovecot.list
|
echo "deb https://repo.dovecot.org/ce-2.3-latest/debian/${VERSION_CODENAME} ${VERSION_CODENAME} main" > /etc/apt/sources.list.d/dovecot.list
|
||||||
|
Loading…
Reference in New Issue
Block a user