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
|
177 |
jpm |
11 |
echo "EFLORE :";
|
|
|
12 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php eflore -a supprimerTous
|
|
|
13 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php eflore -a chargerTous
|
130 |
jpm |
14 |
echo "BDTFX :";
|
|
|
15 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdtfx -a supprimerTous
|
51 |
jpm |
16 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdtfx -a chargerTous
|
130 |
jpm |
17 |
echo "INSEE-D :";
|
|
|
18 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php insee_d -a supprimerTous
|
51 |
jpm |
19 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php insee_d -a chargerTous
|
130 |
jpm |
20 |
echo "ISO-639-1 :";
|
|
|
21 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_639_1 -a supprimerTous
|
73 |
jpm |
22 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_639_1 -a chargerTous
|
130 |
jpm |
23 |
echo "ISO-3166-1 :";
|
|
|
24 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_3166_1 -a supprimerTous
|
108 |
jpm |
25 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_3166_1 -a chargerTous
|
130 |
jpm |
26 |
echo "NVJFL :";
|
|
|
27 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php nvjfl -a supprimerTous
|
125 |
jpm |
28 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php nvjfl -a chargerTous
|
130 |
jpm |
29 |
# Nécessite la création préalable de la base de données tb_cel
|
|
|
30 |
echo "CEL :";
|
|
|
31 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php cel -a supprimerTous
|
125 |
jpm |
32 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php cel -a chargerTous
|