delete /etc/opkg/keys on autoupdater upgrade

- does trigger on autoupdate after checking that the image is correct

fixes https://github.com/freifunk-gluon/gluon/issues/2665
This commit is contained in:
Florian Maurer 2023-06-14 09:33:48 +02:00
parent 29912ec630
commit 9fe0feadbf
No known key found for this signature in database
GPG Key ID: D5B29CD0C9E06237
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/usr/bin/lua
local handle = io.popen("ls /etc/opkg/keys -1")
local files = handle:read("*a")
handle:close()
for file in files:gmatch("[^\r\n]+") do
local filePath = "/etc/opkg/keys/" .. file
os.remove(filePath)
end