Skip to content

Commit 467ae52

Browse files
committed
Remove redundant check
1 parent 78d5e52 commit 467ae52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/linux/gather/openvpn_credentials.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def run
4747
user = cmd_exec('/usr/bin/whoami')
4848
print_good("Module running as \"#{user}\" user")
4949

50-
unless is_root? && user == 'root'
50+
unless is_root?
5151
print_error('This module requires root permissions.')
5252
return
5353
end

0 commit comments

Comments
 (0)