From 71b69b460b8f87a99178ffda14ff0c06ec304bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 2 Nov 2017 17:15:37 +0100 Subject: Fix myrepo updater configuration --- myrepo-cert/files/updater.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'myrepo-cert/files') diff --git a/myrepo-cert/files/updater.lua b/myrepo-cert/files/updater.lua index 2f663ab..f68f585 100644 --- a/myrepo-cert/files/updater.lua +++ b/myrepo-cert/files/updater.lua @@ -1,3 +1,10 @@ -Script("myrepo", "http://cynerd.cz/myrepo/" .. string.lower(model) .. ".lua", { +local board +if model:match('[Oo]mnia') then + board = "omnia" +else + board = "turris" +end + +Script("myrepo", "http://cynerd.cz/myrepo/" .. board .. ".lua", { pubkey = "file:///etc/updater/keys/myrepo.pub" }) -- cgit v1.2.3