Commit b8063f24 authored by Diego Pasqualin's avatar Diego Pasqualin

le-proinfodata: Allow to build a new pkg without downloading a new agent

Signed-off-by: 's avatarDiego Pasqualin <dpasqualin@c3sl.ufpr.br>
parent 85ab50c3
......@@ -30,9 +30,15 @@ MD5DIR="${AGENT_FILES}/SEED2-run/.md5sum"
LBFILE="${PREFIX}/package/etc/le-proinfodata/le.zone"
AGENTURL="http://proinfodata.c3sl.ufpr.br/downloads/Pacote_de_Instalacao_SEED2_v1.4.0.run"
read -p "Do you want to download the latest version of the agent (y|N)?" YN
if [ "$YN" != "y" ]; then
echo "Continuing with the existent agent."
exit 0
fi
# ------------------------------------------------------------------------------
# Compressing the local base
if ! test -f "${LBFILE}.bz2"; then
if ! test -f "${LBFILE}.bz2"; then
if ! bzip2 ${LBFILE}; then
printf "ERROR (1): problems while Compressing the local base. \n"
exit 1
......@@ -44,4 +50,4 @@ mkdir $PIDDEST
if ! wget $AGENTURL -O $PIDINSTALLER; then
printf "ERROR (2): problems while downloading the agent. \n"
exit 2
fi
fi
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