1
0

hosts/web-2: Read feeds from different directory

This commit is contained in:
clerie 2025-01-06 18:38:16 +01:00
parent e70ff56b28
commit 13dd689240
2 changed files with 5 additions and 2 deletions

View File

@ -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
'';
};
};

View File

@ -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