You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
630 B

#!/bin/bash
trap "" 2 20
SERVIDOR=$1
SERIDOR_DEFAULT=192.168.115.12
ARQUITETURA=$(uname -m)
if [ -z "$SERVIDOR" ] ; then
SERVIDOR=$SERIDOR_DEFAULT
fi
/bin/rm -rf aplicativo-simplesip*.tar.gz
wget -c -r -A.gz -nd -l1 http://$SERVIDOR/downloads/instalador_simplesip/ --progress=bar:force 2>&1 | tail -f -n +6
if ! [ -e aplicativo-simplesip*.tar.gz ] ; then
clear
echo ""
echo ""
echo "Falha no download do arquivo..."
echo ""
echo ""
exit
fi
tar xzf aplicativo-simplesip*.tar.gz
chmod 777 aplicativo-simplesip/sip_atualiza.sh
./aplicativo-simplesip/sip_atualiza.sh