upgrade-mattermost.sh: parameterize database name when writing backup sql file.

This commit is contained in:
Christoph 2023-11-05 23:07:58 +01:00
parent 5769bce4d9
commit 52917ecaf4

View File

@ -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")"