Skip to content
Snippets Groups Projects
Commit 096d7429 authored by jurgenhaas's avatar jurgenhaas
Browse files

mobimo/support#2982 Re-configure mysql backup destination and add cron tab

parent 343078ac
Branches
Tags
1 merge request!4Merging develop into main
Pipeline #521767 passed
......@@ -155,9 +155,7 @@ class Handler extends BaseHandler {
],
'backstop' => $this->backstopDefaults(),
'crontabs' => [
'www-data' => [
'5,35 * * * * cd /var/www/html && /usr/local/bin/drush sql:dump --result-file=/var/backups/mysql/drupal.sql',
],
'www-data' => [],
],
'backup' => [
'enable' => FALSE,
......@@ -246,6 +244,11 @@ class Handler extends BaseHandler {
$traefik = $this->config->readValue('traefik');
$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);
}
$overwriteConfig = [
'staging' => !in_array(getenv('PROJECT_BRANCH_SANITIZED'), ['master', 'main'], TRUE),
'docker0' => [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment