From bfeb8a7d167cc80628161bfbe3fddde7714b9419 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Fri, 10 Jun 2022 11:31:47 +0200
Subject: [PATCH] mobimo/support#2982 Re-configure mysql backup destination and
 add cron tab

---
 src/Handler.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Handler.php b/src/Handler.php
index 3cb4600..a0b4882 100644
--- a/src/Handler.php
+++ b/src/Handler.php
@@ -245,9 +245,9 @@ class Handler extends BaseHandler {
         $traefik['usessl'] = 1;
         $traefik['ports'] = 443;
         if ($this->config->readValue(['backup', 'enable'])) {
-          $cron = $this->config->readValue('cron');
-          $cron['www-data'][] = '5 0 * * * cd /var/www/html && /usr/local/bin/drush sql:dump --result-file=/var/backups/mysql/drupal.sql';
-          $this->config->setValue('cron', $cron, FALSE);
+          $crontabs = $this->config->readValue('crontabs');
+          $crontabs['www-data'][] = '5 0 * * * cd /var/www/html && /usr/local/bin/drush sql:dump --result-file=/var/backups/mysql/drupal.sql';
+          $this->config->setValue('crontabs', $crontabs, FALSE);
         }
         $overwriteConfig = [
           'staging' => !in_array(getenv('PROJECT_BRANCH_SANITIZED'), ['master', 'main'], TRUE),
-- 
GitLab