1
0
mirror of https://github.com/freifunk-gluon/packages.git synced 2024-06-17 20:54:03 +02:00

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 87a26fd8ae
commit 4ef3bd3181

View File

@ -51,8 +51,10 @@ if fs.access("/etc/config/dropbear") then
end
function keys.remove(self, section)
if keys:formvalue("_keys") then
fs.remove("/etc/dropbear/authorized_keys")
end
end
end
local m2 = Map("system", "Passwort")