Skip to content

Commit 2628e38

Browse files
committed
feat: allow to disable the permission check
1 parent b529f00 commit 2628e38

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lgsm/modules/check_permissions.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,12 @@ fn_sys_perm_error_process() {
225225

226226
## Run permisions checks when not root or docker.
227227
if [ "$(whoami)" != "root" ] && [ ! -f /.dockerenv ]; then
228-
fn_check_ownership
228+
if [ "${skipownershipcheck}" != "on" ]; then
229+
fn_check_ownership
230+
else
231+
fn_print_warn_nl "Skipped permission check"
232+
fn_script_log_warn "Skipped permission check"
233+
fi
229234
fn_check_permissions
230235
if [ "${commandname}" == "START" ]; then
231236
fn_sys_perm_error_process

0 commit comments

Comments
 (0)