diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-06-12 23:35:04 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-06-12 23:35:04 +0200 |
commit | 26ba8df52287d493a063da4a5b93455cb4cb5b82 (patch) | |
tree | 8a56abc6253c0e53ab181152c6a3fc326e47a32c /odin | |
parent | c5760f5a5a0d41e4adfca1da35d77726c3cdd1a9 (diff) | |
download | nixos-26ba8df52287d493a063da4a5b93455cb4cb5b82.tar nixos-26ba8df52287d493a063da4a5b93455cb4cb5b82.tar.gz nixos-26ba8df52287d493a063da4a5b93455cb4cb5b82.tar.bz2 nixos-26ba8df52287d493a063da4a5b93455cb4cb5b82.tar.xz nixos-26ba8df52287d493a063da4a5b93455cb4cb5b82.zip |
Start uucico from cache-media
Diffstat (limited to 'odin')
-rw-r--r-- | odin/strm/cache_media | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/odin/strm/cache_media b/odin/strm/cache_media index 796bccf0..c34e20fe 100644 --- a/odin/strm/cache_media +++ b/odin/strm/cache_media | |||
@@ -22,6 +22,8 @@ function notmuch { | |||
22 | done | 22 | done |
23 | } | 23 | } |
24 | 24 | ||
25 | acted=false | ||
26 | |||
25 | while { | 27 | while { |
26 | results=$(notmuch search --sort=oldest-first --output=messages "( tag:inbox AND is:media AND is:unread ) AND NOT ( tag:new OR tag:killed OR tag:failed OR tag:cached )") | 28 | results=$(notmuch search --sort=oldest-first --output=messages "( tag:inbox AND is:media AND is:unread ) AND NOT ( tag:new OR tag:killed OR tag:failed OR tag:cached )") |
27 | ids=("${(f)results}") | 29 | ids=("${(f)results}") |
@@ -34,5 +36,11 @@ while { | |||
34 | 36 | ||
35 | for id (${ids}); do | 37 | for id (${ids}); do |
36 | systemctl --user start $(systemd-escape --template=download-youtube@.service ${id}) | 38 | systemctl --user start $(systemd-escape --template=download-youtube@.service ${id}) |
39 | |||
40 | acted=true | ||
37 | done | 41 | done |
38 | done | 42 | done |
43 | |||
44 | if ${acted}; then | ||
45 | systemctl --no-block start uucico@hel.service | ||
46 | fi | ||