From bfdc5282861e0cb95b6217efdac286320003fe43 Mon Sep 17 00:00:00 2001 From: AltGrF13 Date: Thu, 2 Jan 2025 03:21:58 +0300 Subject: [PATCH] =?UTF-8?q?#234=20=D0=BE=D1=84=D0=BE=D1=80=D0=BC=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- opt/bin/main/setup | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/opt/bin/main/setup b/opt/bin/main/setup index e6471096..811c403b 100644 --- a/opt/bin/main/setup +++ b/opt/bin/main/setup @@ -781,22 +781,20 @@ cmd_uninstall() { fi [ -z "${sure}" ] && print_line echo "${mess}" - # Останавливаем сервер AdGuardHome - if cmd_adguardhome_status | grep -q "ВКЛЮЧЕН" ; then - ready "Останавливаем службу AdGuardHome " - ${ADGUARDHOME_DEMON} stop &> /dev/null && when_ok "УСПЕШНО" || when_bad "ОШИБКА" - else - + + if cmd_adguardhome_status | grep -q 'ВКЛЮЧЕН' ; then + ready 'Останавливаем службу AdGuardHome ' + ${ADGUARDHOME_DEMON} stop &>/dev/null && when_ok 'УСПЕШНО' || when_bad 'ОШИБКА' + else if has_ssr_enable ; then - ready "Останавливаем службу Shadowsocks " - # Останавливаем сервер SSR - /opt/etc/init.d/S22shadowsocks stop &> /dev/null && when_ok "УСПЕШНО" || when_bad "ОШИБКА" + ready 'Останавливаем службу Shadowsocks ' + /opt/etc/init.d/S22shadowsocks stop &>/dev/null && when_ok 'УСПЕШНО' || when_bad 'ОШИБКА' else - ready "Останавливаем службу dnsmasq " - /opt/etc/init.d/S56dnsmasq stop &> /dev/null && when_ok "УСПЕШНО" || when_bad "ОШИБКА" + ready 'Останавливаем службу dnsmasq ' + /opt/etc/init.d/S56dnsmasq stop &>/dev/null && when_ok 'УСПЕШНО' || when_bad 'ОШИБКА' - ready "Останавливаем службу dnscrypt-proxy2 " - /opt/etc/init.d/S09dnscrypt-proxy2 stop &> /dev/null && when_ok "УСПЕШНО" || when_bad "ОШИБКА" + ready 'Останавливаем службу dnscrypt-proxy2 ' + /opt/etc/init.d/S09dnscrypt-proxy2 stop &>/dev/null && when_ok 'УСПЕШНО' || when_bad 'ОШИБКА' fi fi