diff options
author | Andrew Cady <d@jerkface.net> | 2023-05-23 21:04:47 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2023-05-23 21:04:47 -0400 |
commit | 203d7252bbfc371aedf3618f23fe61a0f44c4a7f (patch) | |
tree | cdb84fddce04b9974407f1f15d3b3c0556ad94a7 | |
parent | 4850f5ceb885b4f568ace6208e18f9d444034b3f (diff) |
whitespace improvement improves ps output, also enable --now
-rw-r--r-- | src/push-btrfs.service | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/push-btrfs.service b/src/push-btrfs.service index 7d32080..c4ab87c 100644 --- a/src/push-btrfs.service +++ b/src/push-btrfs.service | |||
@@ -5,13 +5,14 @@ ConditionPathExistsGlob = /etc/btrfs-backup/remotes/*.json | |||
5 | 5 | ||
6 | [Service] | 6 | [Service] |
7 | WorkingDirectory = /etc/btrfs-backup/remotes | 7 | WorkingDirectory = /etc/btrfs-backup/remotes |
8 | ExecStart = bash -e -c 'shopt -s failglob; \ | 8 | ExecStart = bash -e -c '\ |
9 | units=(*.json); \ | 9 | shopt -s failglob; \ |
10 | units=($${units[@]/.json/.timer}); \ | 10 | units=(*.json); \ |
11 | units=($${units[@]/#/%p@}); \ | 11 | units=($${units[@]/.json/.timer}); \ |
12 | systemctl enable "$${units[@]}"; \ | 12 | units=($${units[@]/#/%p@}); \ |
13 | entr -pnd -- true <<< . || true; \ | 13 | systemctl enable --now "$${units[@]}"; \ |
14 | ' | 14 | entr -pnd -- true <<< . || true; \ |
15 | ' | ||
15 | 16 | ||
16 | [Install] | 17 | [Install] |
17 | WantedBy=default.target | 18 | WantedBy=default.target |