From b5a669d27598e365c8672d7ef3f57a7b749e9b40 Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Wed, 11 Nov 2020 18:10:48 +0300 Subject: [PATCH] do not fallback from systemctl to service in postinstall --- scripts/postinst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/postinst b/scripts/postinst index 9bef343..2ece3f8 100644 --- a/scripts/postinst +++ b/scripts/postinst @@ -22,8 +22,8 @@ fi echo "" echo 3proxy installed. if /bin/systemctl >/dev/null 2>&1; then \ - /bin/systemctl stop 3proxy.service || /usr/sbin/service 3proxy stop || true; \ - /bin/systemctl start 3proxy.service || /usr/sbin/service 3proxy start || true; \ + /bin/systemctl stop 3proxy.service \ + /bin/systemctl start 3proxy.service \ echo use ;\ echo " "systemctl start 3proxy.service ;\ echo to start proxy ;\