Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Fixes #21348 - check path includes sbin in katello-* scripts
Browse files Browse the repository at this point in the history
(cherry picked from commit 8b7b45d)
  • Loading branch information
John Mitsch authored and ehelms committed Oct 18, 2017
1 parent f030a72 commit e96ea6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion katello/katello-backup
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

# check if production install
if __FILE__.start_with?('/sbin/')
if __FILE__.include?('sbin')
UTILS_PATH='/usr/share/katello'
else
UTILS_PATH=File.expand_path('..', __FILE__)
Expand Down
2 changes: 1 addition & 1 deletion katello/katello-change-hostname
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

# check if production install
if __FILE__.start_with?('/sbin/')
if __FILE__.include?('sbin')
UTILS_PATH='/usr/share/katello'
else
UTILS_PATH=File.expand_path('..', __FILE__)
Expand Down
2 changes: 1 addition & 1 deletion katello/katello-restore
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

# check if production install
if __FILE__.start_with?('/sbin/')
if __FILE__.include?('sbin')
UTILS_PATH='/usr/share/katello'
else
UTILS_PATH=File.expand_path('..', __FILE__)
Expand Down

0 comments on commit e96ea6d

Please sign in to comment.