From d49a5eb545c51a97423e07da377311b164bc358a Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 4 Mar 2021 17:54:11 +0300 Subject: [PATCH] install_easy: stop macos service before processing --- install_easy.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install_easy.sh b/install_easy.sh index 6040c43..3a06f56 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -1169,9 +1169,14 @@ service_start_macos() { echo \* starting zapret service - ln -fs /opt/zapret/init.d/macos/zapret.plist /Library/LaunchDaemons "$INIT_SCRIPT_SRC" start } +service_stop_macos() +{ + echo \* stopping zapret service + + "$INIT_SCRIPT_SRC" stop +} macos_fw_reload_trigger_clear() { case "$MODE" in @@ -1199,6 +1204,7 @@ install_macos() check_bins require_root check_location copy_all + service_stop_macos install_binaries check_dns select_ipv6