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 Jun 27, 2022
1 parent 635f4bc commit e6f66ea
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 e6f66ea

Please sign in to comment.