diff options
author | Andrew Cady <d@jerkface.net> | 2023-05-23 17:27:14 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2023-05-23 17:27:14 -0400 |
commit | 4850f5ceb885b4f568ace6208e18f9d444034b3f (patch) | |
tree | 6bed394471606efb05350e07735e474f2c32e50e | |
parent | f092cf80f9ee0c3a86ba9c62fc8e840bd6d5d76d (diff) |
move some files to src/
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | push-btrfs.path | 6 | ||||
-rw-r--r-- | src/push-btrfs.service (renamed from push-btrfs.service) | 0 | ||||
-rw-r--r-- | src/push-btrfs.timer (renamed from push-btrfs.timer) | 0 | ||||
-rw-r--r-- | src/push-btrfs@.service (renamed from push-btrfs@.service) | 0 | ||||
-rw-r--r-- | src/push-btrfs@.timer (renamed from push-btrfs@.timer) | 0 |
6 files changed, 3 insertions, 9 deletions
@@ -5,14 +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 | 8 | unit_files = $(wildcard src/*.service src/*.timer) |
9 | 9 | ||
10 | enable_unit = push-btrfs.timer | 10 | enable_unit = push-btrfs.timer |
11 | 11 | ||
12 | install: | 12 | install: |
13 | systemctl link $(addprefix ./, $(unit_files)) | 13 | systemctl link $(addprefix ./, $(unit_files)) |
14 | systemctl reset-failed $(enable_unit) | 14 | systemctl reset-failed $(notdir $(enable_unit)) |
15 | systemctl enable --now $(enable_unit) | 15 | systemctl enable --now $(notdir $(enable_unit)) |
16 | 16 | ||
17 | go: | 17 | go: |
18 | 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 |
diff --git a/push-btrfs.path b/push-btrfs.path deleted file mode 100644 index 1767b1f..0000000 --- a/push-btrfs.path +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | [Path] | ||
2 | PathExistsGlob=/etc/btrfs-backup/remotes/*.json | ||
3 | PathChanged=/etc/btrfs-backup/remotes | ||
4 | |||
5 | [Install] | ||
6 | WantedBy=default.target | ||
diff --git a/push-btrfs.service b/src/push-btrfs.service index 7d32080..7d32080 100644 --- a/push-btrfs.service +++ b/src/push-btrfs.service | |||
diff --git a/push-btrfs.timer b/src/push-btrfs.timer index 4bfb418..4bfb418 100644 --- a/push-btrfs.timer +++ b/src/push-btrfs.timer | |||
diff --git a/push-btrfs@.service b/src/push-btrfs@.service index 9eb1713..9eb1713 100644 --- a/push-btrfs@.service +++ b/src/push-btrfs@.service | |||
diff --git a/push-btrfs@.timer b/src/push-btrfs@.timer index 89fa8cc..89fa8cc 100644 --- a/push-btrfs@.timer +++ b/src/push-btrfs@.timer | |||