diff --git a/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js b/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js index 380ee76d8241..d79ee985c9d5 100644 --- a/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js +++ b/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js @@ -865,8 +865,13 @@ function handleConfig(ev) fs.list(base_dir).then(function(partials) { var files = []; - if (!L.hasSystemFeature('apk')) - files.push(base_dir + '.conf') + if (L.hasSystemFeature('apk')) { + files.push(base_dir + '/' + 'repositories.d/customfeeds.list', + base_dir + '/' + 'repositories.d/distfeeds.list' + ) + } else { + files.push(base_dir + '.conf') + } for (var i = 0; i < partials.length; i++) { if (partials[i].type == 'file') { diff --git a/applications/luci-app-package-manager/root/usr/share/rpcd/acl.d/luci-app-package-manager.json b/applications/luci-app-package-manager/root/usr/share/rpcd/acl.d/luci-app-package-manager.json index e4212389597d..8d551860e892 100644 --- a/applications/luci-app-package-manager/root/usr/share/rpcd/acl.d/luci-app-package-manager.json +++ b/applications/luci-app-package-manager/root/usr/share/rpcd/acl.d/luci-app-package-manager.json @@ -8,7 +8,9 @@ "/usr/libexec/package-manager-call list-available": [ "exec" ], "/etc/opkg.conf": [ "read" ], "/etc/opkg/*.conf": [ "read" ], - "/etc/apk/repositories": [ "read" ] + "/etc/apk/repositories": [ "read" ], + "/etc/apk/repositories.d/distfeeds.list": [ "read" ], + "/etc/apk/repositories.d/customfeeds.list": [ "read" ] }, "ubus": { "luci": [ "getMountPoints" ] @@ -25,6 +27,8 @@ "/etc/opkg.conf": [ "write" ], "/etc/opkg/*.conf": [ "write" ], "/etc/apk/repositories": [ "write" ], + "/etc/apk/repositories.d/distfeeds.list": [ "write" ], + "/etc/apk/repositories.d/customfeeds.list": [ "write" ], "/tmp/upload.ipk": [ "write" ], "/tmp/upload.apk": [ "write" ] }