Skip to content

Commit

Permalink
feat: allow to disable the permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
h3o66 committed Apr 10, 2023
1 parent b529f00 commit 2628e38
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit 2628e38

Please sign in to comment.