localrss: fix

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-05-19 16:57:09 +02:00
parent ddb758542d
commit a9a6cdbe26

View File

@ -25,8 +25,8 @@ if [ "${1}" = "modules" ]; then
"channel": { "channel": {
"title": "RSS for DSM Auto Update", "title": "RSS for DSM Auto Update",
"link": "https://update.synology.com/autoupdate/v2/getList", "link": "https://update.synology.com/autoupdate/v2/getList",
"pubDate": "Sat Aug 6 0:18:39 CST 2022", "pubDate": "Sat May 4 20:30:02 CST 2024",
"copyright": "Copyright 2022 Synology Inc", "copyright": "Copyright 2024 Synology Inc",
"item": [ "item": [
{ {
"title": "DSM ${productversion}-${buildnumber}", "title": "DSM ${productversion}-${buildnumber}",
@ -61,8 +61,8 @@ EOF
<channel> <channel>
<title>RSS for DSM Auto Update</title> <title>RSS for DSM Auto Update</title>
<link>http://update.synology.com/autoupdate/genRSS.php</link> <link>http://update.synology.com/autoupdate/genRSS.php</link>
<pubDate>Tue May 9 11:52:15 CST 2023</pubDate> <pubDate>Wed May 1 12:02:35 CST 2024</pubDate>
<copyright>Copyright 2023 Synology Inc</copyright> <copyright>Copyright 2024 Synology Inc</copyright>
<item> <item>
<title>DSM ${productversion}-${buildnumber}</title> <title>DSM ${productversion}-${buildnumber}</title>
<MajorVer>${major}</MajorVer> <MajorVer>${major}</MajorVer>
@ -86,12 +86,13 @@ EOF
EOF EOF
if [ -f /usr/syno/web/localrss.xml ]; then if [ -f /usr/syno/web/localrss.xml ]; then
cat /usr/syno/web/localrss.xml # cat /usr/syno/web/localrss.xml
sed -i "s|rss_server=.*$|rss_server=\"http://localhost:5000/localrss.xml\"|g" "/etc/synoinfo.conf" "/etc.defaults/synoinfo.conf" sed -i "s|rss_server=.*$|rss_server=\"http://localhost:5000/localrss.xml\"|g" "/etc/synoinfo.conf" "/etc.defaults/synoinfo.conf"
sed -i "s|rss_server_ssl=.*$|rss_server_ssl=\"http://localhost:5000/localrss.xml\"|g" "/etc/synoinfo.conf" "/etc.defaults/synoinfo.conf" sed -i "s|rss_server_ssl=.*$|rss_server_ssl=\"http://localhost:5000/localrss.xml\"|g" "/etc/synoinfo.conf" "/etc.defaults/synoinfo.conf"
fi fi
if [ -f /usr/syno/web/localrss.json ]; then if [ -f /usr/syno/web/localrss.json ]; then
cat /usr/syno/web/localrss.json # cat /usr/syno/web/localrss.json
sed -i "s|rss_server_v2=.*$|rss_server_v2=\"http://localhost:5000/localrss.json\"|g" "/etc/synoinfo.conf" "/etc.defaults/synoinfo.conf" sed -i "s|rss_server_v2=.*$|rss_server_v2=\"http://localhost:5000/localrss.json\"|g" "/etc/synoinfo.conf" "/etc.defaults/synoinfo.conf"
fi fi
grep "rss_server" "/etc/synoinfo.conf"
fi fi