Browse Source

verificar se existe outra conexão com o servidor

dev
bruno 10 months ago
parent
commit
4c8288bf0e
  1. 4
      aplicativo-simplesip/app_install.sh

4
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

Loading…
Cancel
Save