fix: bad path for the MySQL credentials (for the backup before the upgrade).

pull/39/head
Cédric Bonhomme 2017-08-11 11:05:29 +02:00
parent 54ab738fd6
commit a903eff281
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
1 changed files with 2 additions and 2 deletions

View File

@ -120,8 +120,8 @@ if [[ $bypass -eq 0 ]]; then
backupdir=data/backup/$(date +"%Y%m%d_%H%M%S")
mkdir $backupdir
echo -e "\e[32mDumping database to $backupdir...\e[0m"
mysqldump --defaults-file=data/dbcredentials/credentialsmysql.cnf --databases monarc_common > $backupdir/dump-common.sql
mysqldump --defaults-file=data/dbcredentials/credentialsmysql.cnf --databases monarc_cli > $backupdir/dump-cli.sql
mysqldump --defaults-file=data/backup/credentialsmysql.cnf --databases monarc_common > $backupdir/dump-common.sql
mysqldump --defaults-file=data/backup/credentialsmysql.cnf --databases monarc_cli > $backupdir/dump-cli.sql
else
echo -e "\e[93mDatabase backup not configured. Skipping.\e[0m"
fi