Skip to content
Snippets Groups Projects
Commit f894d07b authored by Ricardo Tavares de Oliveira's avatar Ricardo Tavares de Oliveira Committed by Vinicius Ruoso
Browse files

build-debian-package: Changed the way used to get the agent path


There is a configuration file in buildpackage that sets the
agent path. We source this file to get that path.

Acked-by: default avatarDanilo K. S. Yorinori <danilok@c3sl.ufpr.br>
Acked-by: default avatarDiego Giovane Pasqualin <dgp06@c3sl.ufpr.br>
Signed-off-by: default avatarRicardo Tavares de Oliveira <rto07@c3sl.ufpr.br>
parent 4e0e6cfc
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,18 @@ printf "Copying agent files..." ...@@ -52,7 +52,18 @@ printf "Copying agent files..."
DESTDIR=${DIR}/package/opt/seed_mec/SEED2 DESTDIR=${DIR}/package/opt/seed_mec/SEED2
mkdir -p ${DESTDIR} mkdir -p ${DESTDIR}
cp -a ${DIR}/../agent/agent-files/SEED2-run/* ${DESTDIR}
# Get the agent directory
if ! source ${DIR}/../buildpackage.conf ; then
echo "error: failed to load buildpackage.conf"
exit 2
fi
: ${AGENTDIR:="./agent/agent-files"}
: ${AGENTPACKAGEDIR:="SEED2-run"}
# Copy the agent files themselves
cp -a ${DIR}/../${AGENTDIR}/${AGENTPACKAGEDIR}/* ${DESTDIR}
cp -a ${DIR}/../${AGENTDIR}/${AGENTPACKAGEDIR}/{.md5*,.back*} ${DESTDIR}
printf "done.\n" printf "done.\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment