Commit 4b095148 authored by Xavier Thompson's avatar Xavier Thompson

stack/erp5: Fix mariadb exporter.exclude

Instead of excluding only the contents of the datadir, like thus:
```
<path-to-mariadb-instance>/srv/mariadb/**
```

this commit now excludes the data directory itself, like thus:
```
<path-to-mariadb-instance>/srv/mariadb
```

This is important because the mariadb server service script will only
initialise the datadir if it doesn't exist, not if it is merely empty.
Therefore without this mariadb crashes in clone instances.
parent 8dc22418
......@@ -26,7 +26,7 @@ md5sum = d10b8e35b02b5391cf46bf0c7dbb1196
[template-mariadb]
filename = instance-mariadb.cfg.in
md5sum = 7d064777c1c4e7b275b255db4f4b1da9
md5sum = 2796aac57048dbf661ecaecd26004801
[template-kumofs]
filename = instance-kumofs.cfg.in
......
......@@ -267,7 +267,7 @@ slowquery = ${monitor-directory:private}/slowquery_digest
[{{ section('resiliency-exclude-file') }}]
# Generate rdiff exclude file in case of resiliency
< = jinja2-template-base
template = {{ 'inline:{{ "${my-cnf-parameters:data-directory}/**\\n${directory:mariadb-backup-incremental}/**\\n${directory:log}/**\\n${directory:tmp}/**\\n" }}' }}
template = {{ 'inline:{{ "${my-cnf-parameters:data-directory}\\n${directory:mariadb-backup-incremental}/**\\n${directory:log}/**\\n${directory:tmp}/**\\n" }}' }}
rendered = ${directory:srv}/exporter.exclude
[{{ section("resiliency-identity-signature-script")}}]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment