Skip to content

Commit

Permalink
don't use 'service' to check the existance of cylance
Browse files Browse the repository at this point in the history
  • Loading branch information
abenbachir committed Nov 13, 2019
1 parent 3c7b907 commit 6902ac5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions installer/bundle/bundle_skel.sh
Expand Up @@ -244,13 +244,9 @@ is_suse11_platform_with_openssl1(){
}

detect_cylance(){
# Don't use 'service' to check the existance of a service
# because it will fail if there is no service available

service cylance status > /dev/null 2>&1
[ $? -eq 0 ] && return 0

service cylancesvc status > /dev/null 2>&1
[ $? -eq 0 ] && return 0

[ -f /etc/init.d/cylance ] && return 0
[ -f /etc/init.d/cylancesvc ] && return 0
[ -d /opt/cylance ] && return 0
Expand Down

0 comments on commit 6902ac5

Please sign in to comment.