File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ fn_sys_perm_fix_manually_msg() {
181
181
182
182
# Attempt to fix /sys related permission errors if sudo is available, exits otherwise.
183
183
fn_sys_perm_errors_fix () {
184
- if sudo -n true > /dev/null 2>&1 ; then
184
+ if sudo -n true > /dev/null 2>&1 ; then
185
185
fn_print_dots " Automatically fixing /sys permissions"
186
186
fn_script_log_info " Automatically fixing /sys permissions."
187
187
if [ " ${sysdirpermerror} " == " 1" ]; then
@@ -223,10 +223,8 @@ fn_sys_perm_error_process() {
223
223
fi
224
224
}
225
225
226
- # Run perm error detect & fix/alert functions on /sys directories.
227
-
228
- # # Run checks.
229
- if [ " $( whoami) " != " root" ] || [ -f /.dockerenv ]; then
226
+ # # Run permisions checks when not root or docker.
227
+ if [ " $( whoami) " != " root" ] && [ ! -f /.dockerenv ]; then
230
228
fn_check_ownership
231
229
fn_check_permissions
232
230
if [ " ${commandname} " == " START" ]; then
You can’t perform that action at this time.
0 commit comments