Close #945: Compress local base of the package le-proinfodata

Signed-off-by: default avatarEdileuton Henrique de Oliveira <eho09@c3sl.ufpr.br>
parent ef40677e
......@@ -5,7 +5,7 @@ Architecture: i386
Section: main
Priority: important
Pre-Depends: le-inep
Depends: dialog, wget, passwd, sudo, cron, bash, coreutils
Depends: dialog, wget, passwd, sudo, cron, bash, coreutils, bzip2
Description: Agent of PROINFODATA project designed for the LE project
Coleta de dados do projeto ProInfo/MEC de inclusão digital nas escolas
públicas brasileiras (PROINFODATA) is a project supported by Ministério da
......
......@@ -23,6 +23,10 @@
SEED_MEC_HOME="/opt/seed_mec"
BACKUP_DIR="/opt/seed_mec_backup"
LBFILE="/etc/le-proinfodata/le.zone*"
# Descompressing the local base
bunzip2 $LBFILE
# Install the PROINFODATA agent
bash /tmp/agent.run
......
......@@ -44,9 +44,17 @@ AGENT_FILES="./agent-files"
BOOTSTRAP="bootstrap-install"
MD5DIR="${AGENT_FILES}/SEED2-run/.md5sum"
MD5DIRESC="$(echo ${MD5DIR} | sed "s/\./\\\./g")"
LBFILE="${PREFIX}/pacote/etc/le-proinfodata/le.zone"
# ------------------------------------------------------------------------------
# Compressing the local base
if ! bzip2 ${LBFILE}; then
printf "ERROR (10): problems while Compressing the local base"
exit 10
fi
# ------------------------------------------------------------------------------
# Check if the PROINFODATA installer already exists
if test -f "${PIDINSTALLER}"; then
printf "PROINFODATA installer already exists. Skipping generation.\n"
......
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