François
2 years ago
12 changed files with 178 additions and 42 deletions
@ -0,0 +1,15 @@ |
|||
#!/bin/sh |
|||
|
|||
# Répertoire où sont stockées les données des utilisateurs |
|||
# veiller à ce que ce soit le même que dans config.local.php |
|||
FACTORY_USER_DIRECTORY="users" |
|||
|
|||
# Chemin vers le script cron.php de Garradin |
|||
GARRADIN_CRON_SCRIPT="scripts/cron.php" |
|||
|
|||
for user in $(cd ${FACTORY_USER_DIRECTORY} && ls -1d */) |
|||
do |
|||
GARRADIN_FACTORY_USER=$(basename "$user") /usr/bin/php $GARRADIN_CRON_SCRIPT |
|||
echo $GARRADIN_FACTORY_USER |
|||
done |
|||
|
@ -0,0 +1,37 @@ |
|||
#!/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" |
Loading…
Reference in new issue