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 }