luci-app-omcproxy: relax menu dependencies
authorJo-Philipp Wich <jo@mein.io>
Thu, 30 Mar 2023 18:12:49 +0000 (20:12 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 30 Mar 2023 18:12:49 +0000 (20:12 +0200)
The uci configuration may be completely empty, so adjust the menu dependency
to check the existence of the configuration file itself instead.

Fixes: #6301
Supersedes: #6304
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-omcproxy/root/usr/share/luci/menu.d/luci-app-omcproxy.json

index 1eb7aaa75d9daea1687b615269225e860281db7b..eead62752f283cc5f6cb9d5cac7b9c535f83761b 100644 (file)
@@ -6,7 +6,7 @@
                        "path": "omcproxy"
                },
                "depends": {
-                       "uci": { "omcproxy": true }
+                       "fs": { "/etc/config/omcproxy": "file" }
                }
        }
 }