From cdbd9c80e0a6b6cce5a5eede5e0b7dd151e25a87 Mon Sep 17 00:00:00 2001 From: remittor Date: Sun, 17 Nov 2024 13:39:45 +0300 Subject: [PATCH] install: Enable service when upgrade package --- zapret/Makefile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/zapret/Makefile b/zapret/Makefile index fbe14cd..52804c4 100644 --- a/zapret/Makefile +++ b/zapret/Makefile @@ -145,12 +145,6 @@ if [ -z "$${IPKG_INSTROOT}" ]; then rm -f /etc/uci-defaults/zapret-uci-def-cfg.sh # copy (sync) all params from uci-config to main config /opt/zapret/sync_config.sh - # check service status - [ "$$( /etc/init.d/zapret status 2>/dev/null )" = "running" ] && ZAPRET_RUNNING=1 || ZAPRET_RUNNING=0 - if [ "$${ZAPRET_RUNNING}" = "0" ]; then - ps w | grep '/opt/zapret/nfq/nfqws' | grep -v grep | awk '{print $$1}' | xargs -r kill -9 - exit 0 - fi # check main config sh -n "$${ZAPRET_CONFIG}" 2>/dev/null || cp -f "$${ZAPRET_CONFIG_DEF}" "$${ZAPRET_CONFIG}" sh -n "$${ZAPRET_CONFIG}" 2>/dev/null || exit 58