代码拉取完成,页面将自动刷新
#!/bin/bash
UF=$(sed -n 2p /p2k/bin/logUltimaVenda.log 2>/dev/null |awk '{print $NF}')
[ -z "${UF}" ] && UF=$(awk '(/buscaUF/ && /uf = /) || /UFLOJA =/ || /UF Loja :/ {print $NF}' /p2k/bin/CSIDebugFile.txt |sort -u)
if [ -n "${UF}" ]; then
case ${UF} in
AC)
ln -fs /usr/share/zoneinfo/America/Rio_Branco /etc/localtime && ls -hl /etc/localtime ;;
AL|SE)
ln -fs /usr/share/zoneinfo/America/Maceio /etc/localtime && ls -hl /etc/localtime ;;
AM)
ln -fs /usr/share/zoneinfo/America/Manaus /etc/localtime && ls -hl /etc/localtime ;;
AP|PA)
ln -fs /usr/share/zoneinfo/America/Belem /etc/localtime && ls -hl /etc/localtime ;;
BA)
ln -fs /usr/share/zoneinfo/America/Bahia /etc/localtime && ls -hl /etc/localtime ;;
CE|MA|PB|PI|RN)
ln -fs /usr/share/zoneinfo/America/Fortaleza /etc/localtime && ls -hl /etc/localtime ;;
DF|ES|GO|MG|PR|RJ|RS|SC|SP)
ln -fs /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime && ls -hl /etc/localtime ;;
MS)
ln -fs /usr/share/zoneinfo/America/Campo_Grande /etc/localtime && ls -hl /etc/localtime ;;
MT)
ln -fs /usr/share/zoneinfo/America/Cuiaba /etc/localtime && ls -hl /etc/localtime ;;
PE)
ln -fs /usr/share/zoneinfo/America/Recife /etc/localtime && ls -hl /etc/localtime ;;
RO)
ln -fs /usr/share/zoneinfo/America/Porto_Velho /etc/localtime && ls -hl /etc/localtime ;;
RR)
ln -fs /usr/share/zoneinfo/America/Boa_Vista /etc/localtime && ls -hl /etc/localtime ;;
TO)
ln -fs /usr/share/zoneinfo/America/Araguaina /etc/localtime && ls -hl /etc/localtime ;;
*)
echo "${UF}: UF inválida." ;;
esac
else
echo "UF não encontrada."
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。