Skip to content

Commit

Permalink
add /sbin to binary search paths
Browse files Browse the repository at this point in the history
* Amazon Linux puts pidof under /sbin

  fixes #399
  • Loading branch information
itoffshore committed Sep 6, 2020
1 parent 62355d1 commit 54c6ba7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion install-ngxblocker
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ wget_opts() {
}

find_binary() {
local x= path= binary=$1 bin_paths='/bin /usr/bin /usr/local/bin /usr/sbin /usr/local/sbin /root/bin /root/.bin'
local x= path= binary=$1 bin_paths='/bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin /root/bin /root/.bin'

for x in $bin_paths; do
path="$x/$binary"
Expand Down
2 changes: 1 addition & 1 deletion setup-ngxblocker
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ check_args() {
}

find_binary() {
local x= path= binary=$1 bin_paths='/bin /usr/bin /usr/local/bin /usr/sbin /usr/local/sbin /root/bin /root/.bin'
local x= path= binary=$1 bin_paths='/bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin /root/bin /root/.bin'

for x in $bin_paths; do
path="$x/$binary"
Expand Down
2 changes: 1 addition & 1 deletion update-ngxblocker
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ check_dirs() {
}

find_binary() {
local x= path= binary=$1 bin_paths='/bin /usr/bin /usr/local/bin /usr/sbin /usr/local/sbin /root/bin /root/.bin'
local x= path= binary=$1 bin_paths='/bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin /root/bin /root/.bin'

for x in $bin_paths; do
path="$x/$binary"
Expand Down

0 comments on commit 54c6ba7

Please sign in to comment.