Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GitLab
omnibus
Commits
bf675c1f
Commit
bf675c1f
authored
Apr 05, 2012
by
Stephen Delano
Browse files
health check: ignore policytool and javaws
parent
47392ff8
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/omnibus/health_check.rb
View file @
bf675c1f
...
...
@@ -36,6 +36,12 @@ module Omnibus
/libuutil\.so/
]
WHITELIST_FILES
=
[
/jre\/bin\/javaws/
,
/jre\/bin\/policytool/
,
/jre\/lib/
]
WHITELIST_LIBS
.
push
(
*
SOLARIS_WHITELIST_LIBS
)
def
self
.
run
(
install_dir
)
...
...
@@ -59,7 +65,9 @@ module Omnibus
WHITELIST_LIBS
.
each
do
|
reg
|
safe
||=
true
if
reg
.
match
(
name
)
end
safe
||=
true
if
current_library
=~
/jre\/lib/
WHITELIST_FILES
.
each
do
|
reg
|
safe
||=
true
if
reg
.
match
(
current_library
)
end
if
!
safe
&&
linked
!~
Regexp
.
new
(
install_dir
)
bad_libs
[
current_library
]
||=
{}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment