mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
style: minor adjustments (#2786)
Co-authored-by: Casper <casperklein@users.noreply.github.com>
This commit is contained in:
parent
a8b0bc23f8
commit
4ab23061a1
|
@ -130,7 +130,7 @@ function _install_fail2ban
|
||||||
curl -Lkso fail2ban.deb "${FAIL2BAN_DEB_URL}"
|
curl -Lkso fail2ban.deb "${FAIL2BAN_DEB_URL}"
|
||||||
curl -Lkso fail2ban.deb.asc "${FAIL2BAN_DEB_ASC_URL}"
|
curl -Lkso fail2ban.deb.asc "${FAIL2BAN_DEB_ASC_URL}"
|
||||||
|
|
||||||
FINGERPRINT=$(LANG=C gpg --verify fail2ban.deb.asc fail2ban.deb 2>&1 | sed -n 's#Primary key fingerprint: \(.*\)#\1#p')
|
FINGERPRINT=$(LANG=C gpg --verify fail2ban.deb.asc fail2ban.deb |& sed -n 's#Primary key fingerprint: \(.*\)#\1#p')
|
||||||
|
|
||||||
if [[ -z ${FINGERPRINT} ]]
|
if [[ -z ${FINGERPRINT} ]]
|
||||||
then
|
then
|
||||||
|
|
|
@ -122,12 +122,12 @@ function _get_log_level_or_default
|
||||||
{
|
{
|
||||||
if [[ -n ${LOG_LEVEL+set} ]]
|
if [[ -n ${LOG_LEVEL+set} ]]
|
||||||
then
|
then
|
||||||
printf '%s' "${LOG_LEVEL}"
|
echo "${LOG_LEVEL}"
|
||||||
elif [[ -e /etc/dms-settings ]]
|
elif [[ -e /etc/dms-settings ]]
|
||||||
then
|
then
|
||||||
grep "^LOG_LEVEL=" /etc/dms-settings | cut -d "'" -f 2
|
grep "^LOG_LEVEL=" /etc/dms-settings | cut -d "'" -f 2
|
||||||
else
|
else
|
||||||
printf 'info'
|
echo 'info'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,7 @@ function _get_valid_lines_from_file
|
||||||
# and it will return its value stored in /etc/dms-settings
|
# and it will return its value stored in /etc/dms-settings
|
||||||
function _get_dms_env_value
|
function _get_dms_env_value
|
||||||
{
|
{
|
||||||
local VALUE
|
grep "^${1}=" /etc/dms-settings | cut -d "'" -f 2
|
||||||
VALUE=$(grep "^${1}=" /etc/dms-settings | cut -d '=' -f 2)
|
|
||||||
printf '%s' "${VALUE:1:-1}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: `chown -R 5000:5000 /var/mail` has existed since the projects first commit.
|
# TODO: `chown -R 5000:5000 /var/mail` has existed since the projects first commit.
|
||||||
|
|
Loading…
Reference in a new issue