Skip to content

Commit

Permalink
Replace mysqldump and mysql commands with mariadb equivalents
Browse files Browse the repository at this point in the history
Fix #129
  • Loading branch information
turicas committed Aug 10, 2023
1 parent e086acf commit 63517b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ service_connect() {
local SERVICE_TTY_OPTS
has_tty && SERVICE_TTY_OPTS="-t"

"$DOCKER_BIN" container exec --env=LANG=C.UTF-8 --env=LC_ALL=C.UTF-8 -i $SERVICE_TTY_OPTS "$SERVICE_NAME" env TERM="$TERM" mysql --user=mariadb --password="$PASSWORD" --database="$DATABASE_NAME"
"$DOCKER_BIN" container exec --env=LANG=C.UTF-8 --env=LC_ALL=C.UTF-8 -i $SERVICE_TTY_OPTS "$SERVICE_NAME" env TERM="$TERM" mariadb --user=mariadb --password="$PASSWORD" --database="$DATABASE_NAME"
}

service_create() {
Expand Down Expand Up @@ -170,7 +170,7 @@ service_export() {
local PASSWORD="$(service_password "$SERVICE")"

[[ -n $SSH_TTY ]] && stty -opost
"$DOCKER_BIN" container exec "$SERVICE_NAME" mysqldump --user=mariadb --password="$PASSWORD" "$DATABASE_NAME"
"$DOCKER_BIN" container exec "$SERVICE_NAME" mariadb-dump --user=mariadb --password="$PASSWORD" "$DATABASE_NAME"
status=$?
[[ -n $SSH_TTY ]] && stty opost
exit $status
Expand All @@ -187,7 +187,7 @@ service_import() {
if [[ -t 0 ]]; then
dokku_log_fail "No data provided on stdin."
fi
"$DOCKER_BIN" container exec -i "$SERVICE_NAME" mysql --user=mariadb --password="$PASSWORD" "$DATABASE_NAME"
"$DOCKER_BIN" container exec -i "$SERVICE_NAME" mariadb --user=mariadb --password="$PASSWORD" "$DATABASE_NAME"
}

service_start() {
Expand Down

0 comments on commit 63517b1

Please sign in to comment.