From fbd30ba5e1019184f6749597937c7b303fd96b16 Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 16 Nov 2021 11:56:04 +0300 Subject: [PATCH] install_easy.sh : sysv init check script exists in /etc/init.d --- install_easy.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/install_easy.sh b/install_easy.sh index c2b2ca5..b21530a 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -977,11 +977,12 @@ install_openrc_init() service_start_sysv() { - echo \* starting zapret service - - "$INIT_SCRIPT" start || { - echo could not start zapret service - exitp 30 + [ -x "$INIT_SCRIPT" ] && { + echo \* starting zapret service + "$INIT_SCRIPT" start || { + echo could not start zapret service + exitp 30 + } } }