summaryrefslogtreecommitdiffhomepage
path: root/www/scripts
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-12-13 00:11:11 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-12-13 00:11:11 +0800
commitc7cb1c961d73cf2f4d9ef82f98fe65f13bd4e4c1 (patch)
tree64ebc86479d7954fe0e4253a48b92a0840e3b375 /www/scripts
parent43f092aeba8ff4b345efbfedece63cb437fc1518 (diff)
Update for RSS
Diffstat (limited to 'www/scripts')
-rwxr-xr-xwww/scripts/update-feeds.sh8
1 files changed, 4 insertions, 4 deletions
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 @@
1#! /bin/bash 1#! /bin/bash
2 2
3cd /srv/rss
4mkdir -p feeds
5
6LIST=${LIST:?} 3LIST=${LIST:?}
7curlOpts='--insecure' 4curlOpts='--insecure'
8 5
6ln -sf ${LIST} $(basename $LIST)
7ln -sf $0 $(basename $0)
8
9cat "${LIST}" | while read url interval tags; do 9cat "${LIST}" | while read url interval tags; do
10 feed=feeds/${url//\//%2F} 10 feed=${url//\//%2F}
11 unset next_fetch; declare -i next_fetch=0 11 unset next_fetch; declare -i next_fetch=0
12 12
13 # Get time of next fetch 13 # Get time of next fetch