chore: remove redundant checks
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
parent
6668cbf0fb
commit
8b01330151
|
@ -5,7 +5,7 @@ DMS_STATE_DIR='/var/mail-state'
|
||||||
# Consolidate all states into a single directory
|
# Consolidate all states into a single directory
|
||||||
# (/var/mail-state) to allow persistence using docker volumes
|
# (/var/mail-state) to allow persistence using docker volumes
|
||||||
function _setup_save_states() {
|
function _setup_save_states() {
|
||||||
if [[ ! -d ${DMS_STATE_DIR:?DMS_STATE_DIR is not set} ]]; then
|
if [[ ! -d ${DMS_STATE_DIR} ]]; then
|
||||||
_log 'debug' "'${DMS_STATE_DIR}' is not present - not consolidating state"
|
_log 'debug' "'${DMS_STATE_DIR}' is not present - not consolidating state"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
@ -93,7 +93,7 @@ function _setup_save_states() {
|
||||||
# These corrections are to fix changes to UID/GID values between upgrades,
|
# These corrections are to fix changes to UID/GID values between upgrades,
|
||||||
# or when ownership/permissions were altered externally on the host (eg: migration or system scripts)
|
# or when ownership/permissions were altered externally on the host (eg: migration or system scripts)
|
||||||
function _setup_adjust_state_permissions() {
|
function _setup_adjust_state_permissions() {
|
||||||
[[ ! -d ${DMS_STATE_DIR:?DMS_STATE_DIR is not set} ]] && return 0
|
[[ ! -d ${DMS_STATE_DIR} ]] && return 0
|
||||||
|
|
||||||
# This ensures the user and group of the files from the external mount have their
|
# This ensures the user and group of the files from the external mount have their
|
||||||
# numeric ID values in sync. New releases where the installed packages order changes
|
# numeric ID values in sync. New releases where the installed packages order changes
|
||||||
|
|
Loading…
Reference in New Issue