From 0b259d838affe3b47dd1b92c511fce80ae9e9884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 16 Jan 2024 22:14:40 +0100 Subject: [PATCH] Fix mysql_execute_as_root --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index aad6df8..8b44d80 100644 --- a/scripts/install +++ b/scripts/install @@ -51,7 +51,7 @@ ynh_local_curl "/install.php?installButton" \ "password=$password" # Create cron file -code_sync=$(ynh_mysql_execute_as_root --sql='SELECT value FROM leed_configuration WHERE `key`="synchronisationCode"' | sed -n 1p) +code_sync=$(ynh_mysql_execute_as_root --database="$app" --sql='SELECT value FROM leed_configuration WHERE `key`="synchronisationCode"' | sed -n 1p) ynh_add_config --template="cron_leed" --destination="/etc/cron.d/$app" #=================================================