From 4c8288bf0e1db1a7db01f4e6d66f2b4b6cee1065 Mon Sep 17 00:00:00 2001 From: bruno Date: Wed, 6 Dec 2023 15:36:02 -0400 Subject: [PATCH] =?UTF-8?q?verificar=20se=20existe=20outra=20conex=C3=A3o?= =?UTF-8?q?=20com=20o=20servidor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aplicativo-simplesip/app_install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aplicativo-simplesip/app_install.sh b/aplicativo-simplesip/app_install.sh index 16bcd42e6..9d4932b8b 100644 --- a/aplicativo-simplesip/app_install.sh +++ b/aplicativo-simplesip/app_install.sh @@ -493,6 +493,7 @@ function inserir_sql(){ [ $? -eq 0 ] && sair_instalacao done +|| } @@ -545,7 +546,8 @@ definir_timezone #deslogar todos os usuários -/bin/kill $(ps -ef | egrep '(tty|pts)'| grep -vE "$tty_user"|awk '{print $2}') +PID_USER=$(ps -ef | egrep '(tty|pts)'| grep -vE "$tty_user"|awk '{print $2}') +[ -n $PID_USER ] && /bin/kill -9 $(ps -ef | egrep '(tty|pts)'| grep -vE "$tty_user"|awk '{print $2}') cd $path_arquivo