Commit 34a12b6f authored by Joab Bremer's avatar Joab Bremer

Update update_nxrelay.sh

parent ac58e433
#!/usr/bin/bash #!/usr/bin/bash
echo "Iniciando update..."
echo "Fazendo bkp do nxrelay" echo "Fazendo bkp do nxrelay"
cp -r /nxrelay /usr/local/nxrelay_bkp_$(date +%d%m%Y) cp -r /nxrelay /usr/local/nxrelay_bkp_$(date +%d%m%Y)
cd /nxrelay cd /nxrelay
echo "Baixando arquivo" echo "Baixando arquivo"
/usr/bin/wget --quiet --no-check-certificate https://pub.nxfilter.org/imsi/nxrelay-2.7.8-adv.zip /usr/bin/wget --quiet --no-check-certificate http://git.usb.org.br/infra/scripts/raw/master/nxrelay-2.7.8-adv.zip
/usr/bin/zip -qq -d nxrelay-2.7.8-adv.zip "conf/cfg.properties" /usr/bin/zip -qq -d nxrelay-2.7.8-adv.zip "conf/cfg.properties"
/usr/bin/zip -qq -d nxrelay-2.7.8-adv.zip "conf/log4j.properties" /usr/bin/zip -qq -d nxrelay-2.7.8-adv.zip "conf/log4j.properties"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment