From ccfdc73a299ee8684306303834412b6847bbee50 Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 7 Dec 2023 10:40:07 -0400 Subject: [PATCH] retorno deve ser diferente de 0 --- aplicativo-simplesip/app_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aplicativo-simplesip/app_install.sh b/aplicativo-simplesip/app_install.sh index 82b06df04..f73615d11 100644 --- a/aplicativo-simplesip/app_install.sh +++ b/aplicativo-simplesip/app_install.sh @@ -493,9 +493,9 @@ function inserir_sql(){ file_sql=$(find /${TAR_DATABASE:0:-7}/* -type f ) for sql in $file_sql; do - echo "$sql" sudo -u postgres psql -d pbx -f "$sql" - [ $? -eq 0 ] && sair_instalacao + echo "$sql" + [ $? -ne 0 ] && sair_instalacao done }