mirror of
https://github.com/freifunk-gluon/packages.git
synced 2024-06-18 05:03:58 +02:00
gluon-luci-admin: fix SSH keys being removed when a password is set
This commit is contained in:
parent
87a26fd8ae
commit
4ef3bd3181
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user