gluon-luci-admin: fix SSH keys being removed when a password is set

This commit is contained in:
Matthias Schiffer 2014-10-03 00:47:48 +02:00
parent f9cc73187f
commit 7496b3d3c1

View File

@ -51,7 +51,9 @@ if fs.access("/etc/config/dropbear") then
end
function keys.remove(self, section)
fs.remove("/etc/dropbear/authorized_keys")
if keys:formvalue("_keys") then
fs.remove("/etc/dropbear/authorized_keys")
end
end
end