diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -5,8 +5,14 @@ ifeq ($(remotes),) | |||
5 | $(error You must put at least one *.json configuration file into <file:///$(config_dir)>). | 5 | $(error You must put at least one *.json configuration file into <file:///$(config_dir)>). |
6 | endif | 6 | endif |
7 | 7 | ||
8 | unit_files = push-btrfs.path push-btrfs.service push-btrfs.timer push-btrfs@.service push-btrfs@.timer | ||
9 | |||
10 | enable_unit = push-btrfs.timer | ||
11 | |||
8 | install: | 12 | install: |
9 | for remote in $(remotes); do systemctl enable push-btrfs@$$remote.service; systemctl enable --now push-btrfs@$$remote.timer; done | 13 | systemctl link $(addprefix ./, $(unit_files)) |
14 | systemctl reset-failed $(enable_unit) | ||
15 | systemctl enable --now $(enable_unit) | ||
10 | 16 | ||
11 | go: | 17 | go: |
12 | for remote in $(remotes); do bash$(if $(verbose), -x) push-btrfs $$remote$(if $(verbose),;, &) done; wait | 18 | for remote in $(remotes); do bash$(if $(verbose), -x) push-btrfs $$remote$(if $(verbose),;, &) done; wait |