Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 6902ac5

Browse files
committed
don't use 'service' to check the existance of cylance
1 parent 3c7b907 commit 6902ac5

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

installer/bundle/bundle_skel.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,9 @@ is_suse11_platform_with_openssl1(){
244244
}
245245

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

248-
service cylance status > /dev/null 2>&1
249-
[ $? -eq 0 ] && return 0
250-
251-
service cylancesvc status > /dev/null 2>&1
252-
[ $? -eq 0 ] && return 0
253-
254250
[ -f /etc/init.d/cylance ] && return 0
255251
[ -f /etc/init.d/cylancesvc ] && return 0
256252
[ -d /opt/cylance ] && return 0

0 commit comments

Comments
 (0)