mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-08-30 13:46:48 +02:00
Use absolute path for borgmatic
This commit is contained in:
parent
fa6acbeaa8
commit
5d0d42d2d2
@ -18,4 +18,8 @@
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop: "{{ borg_distro_packages }}"
|
||||
|
||||
- name: Set absolute path to /usr/bin
|
||||
ansible.builtin.set_fact:
|
||||
borg_abs_path: "/usr/bin"
|
||||
...
|
||||
|
@ -63,4 +63,9 @@
|
||||
borg "$@"
|
||||
dest: /usr/local/bin/borg
|
||||
mode: "0755"
|
||||
|
||||
- name: Set absolute path to /usr/bin
|
||||
ansible.builtin.set_fact:
|
||||
borg_abs_path: "/usr/local/bin"
|
||||
|
||||
...
|
||||
|
@ -12,7 +12,7 @@ ConditionACPower=true
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User={{ borg_user }}
|
||||
ExecStart=borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }} {{ borgmatic_timer_flags }}
|
||||
ExecStart={{ borg_abs_path }}/borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }} {{ borgmatic_timer_flags }}
|
||||
|
||||
# Source: https://projects.torsion.org/borgmatic-collective/borgmatic/raw/branch/master/sample/systemd/borgmatic.service
|
||||
# Security settings for systemd running as root, optional but recommended to improve security. You
|
||||
|
Loading…
Reference in New Issue
Block a user