hosts/web-2: Read feeds from different directory
This commit is contained in:
parent
e70ff56b28
commit
13dd689240
@ -9,6 +9,7 @@
|
||||
users.groups."feeds" = {};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /data/feeds 0775 root users - -"
|
||||
"d /var/lib/feeds - feeds feeds - -"
|
||||
];
|
||||
|
||||
@ -31,7 +32,7 @@
|
||||
User = "feeds";
|
||||
Group = "feeds";
|
||||
ExecStart = ''
|
||||
${pkgs.feeds-dir}/bin/feeds-dir
|
||||
${pkgs.feeds-dir}/bin/feeds-dir /data/feeds
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
for file in ./*.txt; do
|
||||
IN_DIR="${1:-.}"
|
||||
|
||||
for file in "${IN_DIR}"/*.txt; do
|
||||
rainbowrss --feeds "${file}" --out "$(basename "${file}" ".txt").html" || true
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user