51 |
jpm |
1 |
#!/bin/bash
|
|
|
2 |
# Script permettant d'initialiser en une seule commande l'ensemble de la base de données eFlore.
|
|
|
3 |
CHEMIN_PHP="/opt/lampp/bin"
|
|
|
4 |
CHEMIN_TBF_CLI="/home/jpm/web/eflore/eflore-projets/scripts"
|
|
|
5 |
MEMORY_LIMIT="3500M"
|
125 |
jpm |
6 |
# Nécessite la création préalable de la base de données tb_eflore
|
130 |
jpm |
7 |
echo "Nettoyage et chargement en cours...";
|
|
|
8 |
echo "BDNT :";
|
|
|
9 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdnt -a supprimerTous
|
87 |
jpm |
10 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdnt -a chargerTous
|
130 |
jpm |
11 |
echo "BDTFX :";
|
|
|
12 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdtfx -a supprimerTous
|
51 |
jpm |
13 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdtfx -a chargerTous
|
130 |
jpm |
14 |
echo "INSEE-D :";
|
|
|
15 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php insee_d -a supprimerTous
|
51 |
jpm |
16 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php insee_d -a chargerTous
|
130 |
jpm |
17 |
echo "ISO-639-1 :";
|
|
|
18 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_639_1 -a supprimerTous
|
73 |
jpm |
19 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_639_1 -a chargerTous
|
130 |
jpm |
20 |
echo "ISO-3166-1 :";
|
|
|
21 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_3166_1 -a supprimerTous
|
108 |
jpm |
22 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_3166_1 -a chargerTous
|
130 |
jpm |
23 |
echo "NVJFL :";
|
|
|
24 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php nvjfl -a supprimerTous
|
125 |
jpm |
25 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php nvjfl -a chargerTous
|
130 |
jpm |
26 |
# Nécessite la création préalable de la base de données tb_cel
|
|
|
27 |
echo "CEL :";
|
|
|
28 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php cel -a supprimerTous
|
125 |
jpm |
29 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php cel -a chargerTous
|