Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Docker for Drupal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Composer
plugin
Docker for Drupal
Commits
bfeb8a7d
Commit
bfeb8a7d
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
mobimo/support#2982 Re-configure mysql backup destination and add cron tab
parent
096d7429
No related branches found
Branches containing commit
Tags
v3.8.4
Tags containing commit
1 merge request
!5
Merging develop into main
Pipeline
#521791
passed
2 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Handler.php
+3
-3
3 additions, 3 deletions
src/Handler.php
with
3 additions
and
3 deletions
src/Handler.php
+
3
−
3
View file @
bfeb8a7d
...
...
@@ -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
);
$cron
tabs
=
$this
->
config
->
readValue
(
'cron
tabs
'
);
$cron
tabs
[
'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
tabs
'
,
$cron
tabs
,
FALSE
);
}
$overwriteConfig
=
[
'staging'
=>
!
in_array
(
getenv
(
'PROJECT_BRANCH_SANITIZED'
),
[
'master'
,
'main'
],
TRUE
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment