From 4025f996dc0ae158e10f3f142360537d7dea854f Mon Sep 17 00:00:00 2001 From: sio user Date: Thu, 25 Jan 2024 14:44:50 +0100 Subject: [PATCH] modif inst-depl pour zabbix.sql.gz et SRC --- pre/inst-depl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pre/inst-depl b/pre/inst-depl index 693bcb7..5d15cd7 100755 --- a/pre/inst-depl +++ b/pre/inst-depl @@ -11,7 +11,7 @@ GITPRJ=gsb2024 apt-get update apt-get install -y lighttpd git STOREREP="/var/www/html/gsbstore" - +SRC="${SRC:-http://depl.sio.lan/gsbstore}" GLPIREL=10.0.11 str="wget -nc -4 https://github.com/glpi-project/glpi/releases/download/${GLPIREL}/glpi-${GLPIREL}.tgz" @@ -50,6 +50,12 @@ str84="wget -nc -4 https://artifacts.elastic.co/downloads/beats/metricbeat/metri (cat < "${STOREREP}/getall" #!/bin/bash +if [[ -z "${SRC+x}" ]]; then + echo "erreur : variable SRC indefinie" + echo " SRC : URL serveur deploiement" + echo "export SRC=http://depl.sio.adm/gsbstore ; ./$0" + exit 1 +fi ${str} ${str31} @@ -72,6 +78,7 @@ ${str81} ${str82} ${str83} ${str84} +wget -nc -4 "${SRC}/zabbix.sql.gz" -O zabbix.sql.gz EOT )