From 2628e381fdc9b324d010528f1bfce5b8268236e1 Mon Sep 17 00:00:00 2001 From: H3o66 Date: Mon, 30 May 2022 20:29:56 +0200 Subject: [PATCH] feat: allow to disable the permission check --- lgsm/modules/check_permissions.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lgsm/modules/check_permissions.sh b/lgsm/modules/check_permissions.sh index bb3e6764f1..ffaed941c7 100644 --- a/lgsm/modules/check_permissions.sh +++ b/lgsm/modules/check_permissions.sh @@ -225,7 +225,12 @@ fn_sys_perm_error_process() { ## Run permisions checks when not root or docker. if [ "$(whoami)" != "root" ] && [ ! -f /.dockerenv ]; then - fn_check_ownership + if [ "${skipownershipcheck}" != "on" ]; then + fn_check_ownership + else + fn_print_warn_nl "Skipped permission check" + fn_script_log_warn "Skipped permission check" + fi fn_check_permissions if [ "${commandname}" == "START" ]; then fn_sys_perm_error_process