From cef730ab11206ae4cb96e8582713720a323f08c4 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Mon, 18 Nov 2024 09:29:25 +0100
Subject: [PATCH] update sandbox line detection

---
 plugins/localdump/mysql.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/plugins/localdump/mysql.sh b/plugins/localdump/mysql.sh
index 43e200d..91f7a95 100755
--- a/plugins/localdump/mysql.sh
+++ b/plugins/localdump/mysql.sh
@@ -100,8 +100,7 @@ function mysql.db.import(){
 
   # https://mariadb.org/mariadb-dump-file-compatibility-change/
   # if sandbox mode is detected then skip the first line
-  local sSandbox; sSandbox='/*!999999\- enable the sandbox mode */'
-  if zcat "$_dumpfile" | head -1 | grep -Fq "$sSandbox" 
+  if zcat "$_dumpfile" | head -1 | grep -Fq '!999999\- enable the sandbox mode'
   then
     zcat "$_dumpfile" | tail +2 | mysql $BACKUP_PARAMS "${_dbname}"
   else
-- 
GitLab