From c7cb1c961d73cf2f4d9ef82f98fe65f13bd4e4c1 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 13 Dec 2024 00:11:11 +0800 Subject: Update for RSS --- www/Makefile | 2 +- www/scripts/update-feeds.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'www') diff --git a/www/Makefile b/www/Makefile index d54081b..ab6a39e 100644 --- a/www/Makefile +++ b/www/Makefile @@ -15,4 +15,4 @@ frontmatter: rss: cd /srv/rss export LIST=~/log/public/links/rss.list - $(ROOT_DIR)/scripts/update-feeds.sh + $(ROOT_DIR)scripts/update-feeds.sh diff --git a/www/scripts/update-feeds.sh b/www/scripts/update-feeds.sh index 8dff837..cb7da02 100755 --- a/www/scripts/update-feeds.sh +++ b/www/scripts/update-feeds.sh @@ -1,13 +1,13 @@ #! /bin/bash -cd /srv/rss -mkdir -p feeds - LIST=${LIST:?} curlOpts='--insecure' +ln -sf ${LIST} $(basename $LIST) +ln -sf $0 $(basename $0) + cat "${LIST}" | while read url interval tags; do - feed=feeds/${url//\//%2F} + feed=${url//\//%2F} unset next_fetch; declare -i next_fetch=0 # Get time of next fetch -- cgit v1.2.3-70-g09d2