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 May 30, 2022
1 parent 20eb96e commit 2091cdc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lgsm/functions/check_permissions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,12 @@ fn_sys_perm_error_process(){

## Run checks.
if [ "$(whoami)" != "root" ]; 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 2091cdc

Please sign in to comment.