mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 13:40:51 +07:00
localrss: fix
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
ddb758542d
commit
a9a6cdbe26
@ -25,8 +25,8 @@ if [ "${1}" = "modules" ]; then
|
||||
"channel": {
|
||||
"title": "RSS for DSM Auto Update",
|
||||
"link": "https://update.synology.com/autoupdate/v2/getList",
|
||||
"pubDate": "Sat Aug 6 0:18:39 CST 2022",
|
||||
"copyright": "Copyright 2022 Synology Inc",
|
||||
"pubDate": "Sat May 4 20:30:02 CST 2024",
|
||||
"copyright": "Copyright 2024 Synology Inc",
|
||||
"item": [
|
||||
{
|
||||
"title": "DSM ${productversion}-${buildnumber}",
|
||||
@ -61,8 +61,8 @@ EOF
|
||||
<channel>
|
||||
<title>RSS for DSM Auto Update</title>
|
||||
<link>http://update.synology.com/autoupdate/genRSS.php</link>
|
||||
<pubDate>Tue May 9 11:52:15 CST 2023</pubDate>
|
||||
<copyright>Copyright 2023 Synology Inc</copyright>
|
||||
<pubDate>Wed May 1 12:02:35 CST 2024</pubDate>
|
||||
<copyright>Copyright 2024 Synology Inc</copyright>
|
||||
<item>
|
||||
<title>DSM ${productversion}-${buildnumber}</title>
|
||||
<MajorVer>${major}</MajorVer>
|
||||
@ -86,12 +86,13 @@ EOF
|
||||
EOF
|
||||
|
||||
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_ssl=.*$|rss_server_ssl=\"http://localhost:5000/localrss.xml\"|g" "/etc/synoinfo.conf" "/etc.defaults/synoinfo.conf"
|
||||
fi
|
||||
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"
|
||||
fi
|
||||
grep "rss_server" "/etc/synoinfo.conf"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user