summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2023-05-23 17:27:14 -0400
committerAndrew Cady <d@jerkface.net>2023-05-23 17:27:14 -0400
commit4850f5ceb885b4f568ace6208e18f9d444034b3f (patch)
tree6bed394471606efb05350e07735e474f2c32e50e
parentf092cf80f9ee0c3a86ba9c62fc8e840bd6d5d76d (diff)
move some files to src/
-rw-r--r--Makefile6
-rw-r--r--push-btrfs.path6
-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
diff --git a/Makefile b/Makefile
index 0dd9c7e..03387dd 100644
--- a/Makefile
+++ b/Makefile
@@ -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)>).
6endif 6endif
7 7
8unit_files = push-btrfs.path push-btrfs.service push-btrfs.timer push-btrfs@.service push-btrfs@.timer 8unit_files = $(wildcard src/*.service src/*.timer)
9 9
10enable_unit = push-btrfs.timer 10enable_unit = push-btrfs.timer
11 11
12install: 12install:
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
17go: 17go:
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]
2PathExistsGlob=/etc/btrfs-backup/remotes/*.json
3PathChanged=/etc/btrfs-backup/remotes
4
5[Install]
6WantedBy=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