From f83d31ad82312c7cbdfbd6290ec27a1d3eff1928 Mon Sep 17 00:00:00 2001 From: Avi Deitcher Date: Mon, 1 Apr 2024 20:35:07 +0300 Subject: [PATCH] restore nice support Signed-off-by: Avi Deitcher --- entrypoint | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/entrypoint b/entrypoint index 2bce6c56..cd80358c 100755 --- a/entrypoint +++ b/entrypoint @@ -1,3 +1,9 @@ #!/bin/sh -/mysql-backup $@ +NICE_CMD= +# if we asked to do by schema, then we need to get a list of all of the databases, take each, and then tar and zip them +if [ "$NICE" = "true" ]; then + NICE_CMD="nice -n19 ionice -c2" +fi + +${NICE_CMD} /mysql-backup $@