modif inst-depl pour zabbix.sql.gz et SRC
This commit is contained in:
parent
a1ee9c6207
commit
4025f996dc
@ -11,7 +11,7 @@ GITPRJ=gsb2024
|
|||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y lighttpd git
|
apt-get install -y lighttpd git
|
||||||
STOREREP="/var/www/html/gsbstore"
|
STOREREP="/var/www/html/gsbstore"
|
||||||
|
SRC="${SRC:-http://depl.sio.lan/gsbstore}"
|
||||||
|
|
||||||
GLPIREL=10.0.11
|
GLPIREL=10.0.11
|
||||||
str="wget -nc -4 https://github.com/glpi-project/glpi/releases/download/${GLPIREL}/glpi-${GLPIREL}.tgz"
|
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 <<EOT > "${STOREREP}/getall"
|
(cat <<EOT > "${STOREREP}/getall"
|
||||||
#!/bin/bash
|
#!/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}
|
${str}
|
||||||
${str31}
|
${str31}
|
||||||
@ -72,6 +78,7 @@ ${str81}
|
|||||||
${str82}
|
${str82}
|
||||||
${str83}
|
${str83}
|
||||||
${str84}
|
${str84}
|
||||||
|
wget -nc -4 "${SRC}/zabbix.sql.gz" -O zabbix.sql.gz
|
||||||
|
|
||||||
EOT
|
EOT
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user