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 --- nginx/sites-available/vps | 4 ++-- www/Makefile | 2 +- www/scripts/update-feeds.sh | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nginx/sites-available/vps b/nginx/sites-available/vps index b2e40f2..75a789b 100644 --- a/nginx/sites-available/vps +++ b/nginx/sites-available/vps @@ -76,8 +76,8 @@ server { error_log /tmp/cgi info; } - location ^~ /links/feeds/ { - alias /srv/rss/feeds/; + location ^~ /links/rss/ { + alias /srv/rss/; } location ~ [^/]$ { 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