Skip to content

Commit e6f66ea

Browse files
committed
feat: allow to disable the permission check
1 parent 635f4bc commit e6f66ea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lgsm/functions/check_permissions.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,12 @@ fn_sys_perm_error_process() {
227227

228228
## Run checks.
229229
if [ "$(whoami)" != "root" ]; then
230-
fn_check_ownership
230+
if [ "${skipownershipcheck}" != "on" ]; then
231+
fn_check_ownership
232+
else
233+
fn_print_warn_nl "Skipped permission check"
234+
fn_script_log_warn "Skipped permission check"
235+
fi
231236
fn_check_permissions
232237
if [ "${commandname}" == "START" ]; then
233238
fn_sys_perm_error_process

0 commit comments

Comments
 (0)