mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-25 13:14:56 +02:00
style: minor adjustments (#2786)
Co-authored-by: Casper <casperklein@users.noreply.github.com>
This commit is contained in:
parent
a8b0bc23f8
commit
4ab23061a1
3 changed files with 4 additions and 6 deletions
|
@ -122,12 +122,12 @@ function _get_log_level_or_default
|
|||
{
|
||||
if [[ -n ${LOG_LEVEL+set} ]]
|
||||
then
|
||||
printf '%s' "${LOG_LEVEL}"
|
||||
echo "${LOG_LEVEL}"
|
||||
elif [[ -e /etc/dms-settings ]]
|
||||
then
|
||||
grep "^LOG_LEVEL=" /etc/dms-settings | cut -d "'" -f 2
|
||||
else
|
||||
printf 'info'
|
||||
echo 'info'
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -16,9 +16,7 @@ function _get_valid_lines_from_file
|
|||
# and it will return its value stored in /etc/dms-settings
|
||||
function _get_dms_env_value
|
||||
{
|
||||
local VALUE
|
||||
VALUE=$(grep "^${1}=" /etc/dms-settings | cut -d '=' -f 2)
|
||||
printf '%s' "${VALUE:1:-1}"
|
||||
grep "^${1}=" /etc/dms-settings | cut -d "'" -f 2
|
||||
}
|
||||
|
||||
# TODO: `chown -R 5000:5000 /var/mail` has existed since the projects first commit.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue