From e549b73e090d1382a68673d9b30aac55d00c816c Mon Sep 17 00:00:00 2001 From: georglauterbach <44545919+georglauterbach@users.noreply.github.com> Date: Wed, 22 Jan 2025 22:06:49 +0100 Subject: [PATCH] chore: silence `_setup_adjust_state_permissions` Signed-off-by: georglauterbach <44545919+georglauterbach@users.noreply.github.com> --- target/scripts/startup/setup.d/mail_state.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/target/scripts/startup/setup.d/mail_state.sh b/target/scripts/startup/setup.d/mail_state.sh index af6163c1..6db8ba0a 100644 --- a/target/scripts/startup/setup.d/mail_state.sh +++ b/target/scripts/startup/setup.d/mail_state.sh @@ -88,10 +88,7 @@ function _setup_save_states() { } function _setup_adjust_state_permissions() { - if [[ ! -d ${DMS_STATE_DIR:?DMS_STATE_DIR is not set} ]]; then - _log 'debug' "'${DMS_STATE_DIR}' is not present - not adjusting state permissions" - return 0 - fi + [[ -d ${DMS_STATE_DIR:?DMS_STATE_DIR is not set} ]] || return 0 # 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