Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lgsm/modules/check_permissions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down