Commit eaa82937 authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci
Browse files

le-proinfodata/proinfodata-installer.sh: Update script



Update script to work in the new repositories scheme.
Signed-off-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
parent a728d556
......@@ -34,9 +34,9 @@ check_file_integrity(){
# ------------------------------------------------------------------------------
PREFIX="$(dirname $(readlink -f $0))"
BPURL="http://git.c3sl.ufpr.br/pub/scm/proinfodata/buildpackage.git"
BPDIR="${PREFIX}/buildpackage"
AUXDIR="${PREFIX}/git"
BPURL="http://git.c3sl.ufpr.br/pub/scm/proinfodata/stable.git"
BPDIR="${PREFIX}/stable/buildpackage"
AUXDIR="${PREFIX}/stable/git"
PIDDEST="${PREFIX}/pacote/tmp"
PIDINSTALLER="${PIDDEST}/agent.run"
FAKEINEP="99999999"
......@@ -53,8 +53,8 @@ if test -f "${PIDINSTALLER}"; then
exit 0
fi
# Check if the buildpackage repository directory already exists, cloning it
# otherwise
# Check if the stable/buildpackage repository directory already exists, cloning
# it otherwise
if ! test -d "${BPDIR}"; then
if ! git clone "${BPURL}" "${BPDIR}"; then
printf "ERROR (1): problems while executing git clone(1).\n"
......@@ -62,10 +62,10 @@ if ! test -d "${BPDIR}"; then
fi
fi
# Change to buildpackage directory
# Change to stable/buildpackage directory
cd "${BPDIR}"
# Ensure the buildpackage repository is updated
# Ensure the stable/buildpackage repository is updated
if ! git pull; then
printf "ERROR (2): problems while executing git pull(1).\n"
exit 2
......
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