Commit 4b827a0bf80dda3197d35f57c8dc8f2355a9fb65
1 parent
3ab8435b
Exists in
master
and in
3 other branches
updated
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
database/update/db-update-2016-06-22.sh
1 | 1 | #!/bin/bash |
2 | 2 | |
3 | +# Pour Mac OS recent (10.10, Yosemite), la syntaxe du SED est differente | |
4 | +# Il faut donc faire une copie de ce fichier et transformer les instructions sed a l'interieur | |
5 | +# Pour cela, il suffit d'executer ces 2 lignes : | |
6 | +# cp ce_script.sh ce_script_macosx.sh | |
7 | +# sed -e "s/ -i / -i '' /" -i '' ce_script_macosx.sh | |
8 | + | |
9 | +if [ ! -f ../../config/app.php ] ; then | |
10 | +echo "Vous devez executer ce script depuis le dossier database/update/" | |
11 | +exit 1 | |
12 | +fi | |
13 | + | |
3 | 14 | username=$(grep "/\*d\*/'username'" ../../config/app.php | cut -d"'" -f4) |
4 | 15 | password=$(grep "/\*d\*/'password'" ../../config/app.php | cut -d"'" -f4) |
5 | 16 | database=$(grep "/\*d\*/'database'" ../../config/app.php | cut -d"'" -f4) | ... | ... |