upgrade-mattermost.sh: parameterize database name when writing backup sql file.
This commit is contained in:
parent
5769bce4d9
commit
52917ecaf4
@ -587,7 +587,7 @@ fi
|
||||
|
||||
echononl "Backup mattermost database.."
|
||||
mysqldump --login-path=local --opt $DB_NAME \
|
||||
> ${MATTERMOST_BASE_INSTALL_PATH}/mattermost-${backup_date}.sql 2> $log_file
|
||||
> ${MATTERMOST_BASE_INSTALL_PATH}/${DB_NAME}-${backup_date}.sql 2> $log_file
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo_failed
|
||||
error "$(cat "$log_file")"
|
||||
|
Loading…
Reference in New Issue
Block a user