Skip to content

Commit

Permalink
qzeleza#234 ss не зависит от agh, должен останавливаться если есть
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGrF13 authored and AltGrF13 committed Jan 4, 2025
1 parent bfdc528 commit c777307
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions opt/bin/main/setup
Original file line number Diff line number Diff line change
Expand Up @@ -782,20 +782,19 @@ cmd_uninstall() {
[ -z "${sure}" ] && print_line
echo "${mess}"

if has_ssr_enable ; then
ready 'Останавливаем службу Shadowsocks '
/opt/etc/init.d/S22shadowsocks stop &>/dev/null && when_ok 'УСПЕШНО' || when_bad 'ОШИБКА'
fi
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 '
/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 'Останавливаем службу dnscrypt-proxy2 '
/opt/etc/init.d/S09dnscrypt-proxy2 stop &>/dev/null && when_ok 'УСПЕШНО' || when_bad 'ОШИБКА'
fi
fi

# Подключаем библиотеку keen_api
Expand Down

0 comments on commit c777307

Please sign in to comment.