13 lines
267 B
Django/Jinja
13 lines
267 B
Django/Jinja
{%- set user = salt['pillar.get']('podman:user', 'root') %}
|
|
{%- set home = salt['user.info'](user).home %}
|
|
[Unit]
|
|
Description=Dump all mariadb databases
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User={{ user }}
|
|
ExecStart={{ home }}/bin/mysql-dump.sh
|
|
|
|
[Install]
|
|
WantedBy=default.target
|