luci-mod-system: make dropbear pages depend on dropbear executable
authorJo-Philipp Wich <jo@mein.io>
Sun, 17 May 2020 17:32:26 +0000 (19:32 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 17 May 2020 17:32:52 +0000 (19:32 +0200)
Fixes: #4052
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json

index ce67e4cdb8b60f6442731e8c46e6e21bdea2b6ae..4022e0cebf03fa29b598d581acb3c97353996d72 100644 (file)
@@ -42,7 +42,8 @@
                        "path": "system/dropbear"
                },
                "depends": {
-                       "acl": [ "luci-mod-system-ssh" ]
+                       "acl": [ "luci-mod-system-ssh" ],
+                       "fs": { "/usr/sbin/dropbear": "executable" }
                }
        },
 
@@ -54,7 +55,8 @@
                        "path": "system/sshkeys"
                },
                "depends": {
-                       "acl": [ "luci-mod-system-ssh" ]
+                       "acl": [ "luci-mod-system-ssh" ],
+                       "fs": { "/usr/sbin/dropbear": "executable" }
                }
        },