Browse Source

feat: allow to disable the permission check

pull/3880/head
H3o66 3 years ago
parent
commit
2628e381fd
  1. 5
      lgsm/modules/check_permissions.sh

5
lgsm/modules/check_permissions.sh

@ -225,7 +225,12 @@ fn_sys_perm_error_process() {
## Run permisions checks when not root or docker.
if [ "$(whoami)" != "root" ] && [ ! -f /.dockerenv ]; then
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

Loading…
Cancel
Save