You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
#!/bin/bash
|
|
|
|
SERV_DIR=$(cd $(dirname $0); pwd)
|
|
KAZ_ROOT=$(cd $(dirname $0)/../..; pwd)
|
|
. "${KAZ_ROOT}/bin/.commonFunctions.sh"
|
|
setKazVars
|
|
|
|
GAR_VER=$(grep "^ENV GARRADIN_VERSION" Dockerfile | awk '{print $3}')
|
|
FCT_VER="0.7.1"
|
|
echo "VERSION GARRADIN : $GAR_VER"
|
|
echo "VERSION FACTURATION : $FCT_VER"
|
|
|
|
downloadFile () {
|
|
# $1 URL to download
|
|
if [ ! -f "$(basename "$1")" ]; then
|
|
printKazMsg " - load $1"
|
|
curl -L -O "$1"
|
|
fi
|
|
}
|
|
|
|
mkdir -p "${KAZ_DNLD_DIR}/garradin"
|
|
cd "${KAZ_DNLD_DIR}/garradin"
|
|
|
|
printKazMsg "\n *** Download garradin on ${KAZ_DNLD_DIR}"
|
|
|
|
downloadFile "https://fossil.kd2.org/garradin/uv/garradin-${GAR_VER}.tar.gz"
|
|
|
|
downloadFile "https://fossil.kd2.org/garradin-plugins/uv/caisse.tar.gz"
|
|
#downloadFile "https://fossil.kd2.org/garradin-plugins/uv/dompdf.tar.gz"
|
|
downloadFile "https://fossil.kd2.org/garradin-plugins/uv/helloasso.tar.gz"
|
|
downloadFile "https://fossil.kd2.org/garradin-plugins/uv/ouvertures.tar.gz"
|
|
downloadFile "https://fossil.kd2.org/garradin-plugins/uv/reservations.tar.gz"
|
|
downloadFile "https://fossil.kd2.org/garradin-plugins/uv/stock_velos.tar.gz"
|
|
downloadFile "https://fossil.kd2.org/garradin-plugins/uv/taima.tar.gz"
|
|
downloadFile "https://gitlab.com/JBthePenguin/garradin-plugin-materiels/-/raw/main/materiels.tar.gz"
|
|
|
|
downloadFile "https://noizette.net/archive/garradin-plugin-facturation/${FCT_VER}/facturation.tar.gz"
|
|
|