Documentação da infraestrutura: mudanças entre as edições

 
Linha 317: Linha 317:
== Clonar repositórios ==
== Clonar repositórios ==


<syntaxhighlight lang="sh">for repo in \
<syntaxhighlight lang="sh">pushd /var/gits/_a4a
a4a/WS \
git clone git@github.com:AddressForAll/WS.git
a4a/pg_pubLib-v1 \
git clone git@github.com:AddressForAll/pg_pubLib-v1.git
dg/licenses \
dg/preserv \
dg/preserv-AR \
dg/preserv-BO \
dg/preserv-BR \
dg/preserv-CL \
dg/preserv-CM \
dg/preserv-CO \
dg/preserv-EC \
dg/preserv-PE \
dg/preserv-PY \
dg/preserv-SR \
dg/preserv-UY \
dg/preserv-VE \
dg/preserv-MX \
dg/preservDataViz \
dg/stats \
osmc/benchmark \
osmc/BR_new \
osmc/CO_new \
osmc/CM \
osmc/EC_new \
osmc/GGeohash \
osmc/UY_new \
osmc/WS \
osmc/NaturalCodes
do
echo /var/gits/_${repo%%/*}
    if [[ ${repo%%/*} == 'dg' ]]
    then
        project='digital-guard'
    fi
    if [[ ${repo%%/*} == 'a4a' ]]
    then
        project='AddressForAll'
    fi
    if [[ ${repo%%/*} == 'osmc' ]]
    then
        project='osm-codes'
    fi


    echo ${project}
pushd /var/gits/_dg
git clone git@github.com:digital-guard/licenses.git
git clone git@github.com:digital-guard/preserv.git
git clone git@github.com:digital-guard/preserv-AR.git
git clone git@github.com:digital-guard/preserv-BO.git
git clone git@github.com:digital-guard/preserv-BR.git
git clone git@github.com:digital-guard/preserv-CL.git
git clone git@github.com:digital-guard/preserv-CM.git
git clone git@github.com:digital-guard/preserv-CO.git
git clone git@github.com:digital-guard/preserv-EC.git
git clone git@github.com:digital-guard/preserv-PE.git
git clone git@github.com:digital-guard/preserv-PY.git
git clone git@github.com:digital-guard/preserv-SR.git
git clone git@github.com:digital-guard/preserv-UY.git
git clone git@github.com:digital-guard/preserv-VE.git
git clone git@github.com:digital-guard/preserv-MX.git</syntaxhighlight>


    if [ -d "/var/gits/_${repo}" ]; then
        pushd /var/gits/_${repo}
        git pull
        popd
    else
        pushd /var/gits/_${repo%%/*}
        git clone git@github.com:${project}/${repo##*/}.git
        #git clone https://github.com/${project}/${repo##*/}.git
        popd
    fi
done</syntaxhighlight>
== Ajustar permissões ==
== Ajustar permissões ==


237

edições