From c9bdb766eb8ff7054544fab9e871e2606a4b29b2 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 20 Jan 2025 08:45:55 +0100 Subject: [PATCH] Run as root user --- templates/mariadb_backup/listusers.erb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/mariadb_backup/listusers.erb.sh b/templates/mariadb_backup/listusers.erb.sh index ec8d794..ad519da 100644 --- a/templates/mariadb_backup/listusers.erb.sh +++ b/templates/mariadb_backup/listusers.erb.sh @@ -13,7 +13,7 @@ dexec="docker exec ${container}" password=$(${dexec} env | grep MYSQL_ROOT_PASSWORD | awk -F '=' '{print $2}') -mysql="${dexec} mysql -p${password}" +mysql="${dexec} mysql -p${password} -u root" if [[ "$(${mysql} -NB -e 'select exists(select * from information_schema.TABLES where TABLE_SCHEMA = "nextcloud" and TABLE_NAME = "oc_global_scale_users")')" == "1" ]] then