Skip to content
Snippets Groups Projects
Commit 7ffee363 authored by Edileuton Henrique de Oliveira's avatar Edileuton Henrique de Oliveira
Browse files

agent: Fix telecentroInfo update

parent 0d48722c
No related branches found
No related tags found
No related merge requests found
......@@ -168,8 +168,9 @@ if ! ${PREFIX}/bin/datasid-wget.sh 192.168.0.253/api/datasid -O ${DATADIR}/telec
# exit 5
else
# Check if a change has occurred in the webservice
if ! test -f ${CONFDIR}/telecentroInfo -o '$(md5sum ${DATADIR}/telecentroInfo)' != '$(md5sum ${CONFDIR}/telecentroInfo)'; then
mv ${DATADIR}/telecentroInfo ${CONFDIR}/telecentroInfo
if ! test -f ${CONFDIR}/telecentroInfo -a '$(md5sum ${DATADIR}/telecentroInfo)' = '$(md5sum ${CONFDIR}/telecentroInfo)'; then
date +"%F %T - Getting new telecentroInfo"
mv -f ${DATADIR}/telecentroInfo ${CONFDIR}/telecentroInfo
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment