Verifica lista em branco

master
root 2024-11-29 11:14:40 -03:00
parent 635c1427d3
commit 10c01216b4
1 changed files with 2 additions and 0 deletions

View File

@ -620,6 +620,8 @@ case $service in
echo -e "***********************************************************************"
echo -e "Favor acessar ADM via browser e validar. *****"
echo -e " "
portconf=$(cat /dados/$adm/standalone/configuration/standalone.xml | grep "jboss.socket.binding.port-offset" | cut -d ":" -f 2 | tr -d '}">')
portapp=$(expr $portconf + 8080)
[ ! -x "$(which unzip)" ] && echo "Instalando... " && sudo apt install unzip 1> /dev/null 2>&1 -y # unzip instalado?
versaonova=$(unzip -p /tmp/ventaboletosadm.war WEB-INF/classes/versionADM.info ; echo)
versaoantiga=$(unzip -p $bkp/ventaboletosadm.war WEB-INF/classes/versionADM.info ; echo)