aboutsummaryrefslogtreecommitdiff
path: root/myrepo/files/updater.lua
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-11-06 08:23:58 +0100
committerKarel Kočí <karel.koci@nic.cz>2017-11-06 09:57:23 +0100
commit0bcdf73271be4a4f9ca8c849c426b521365dcf30 (patch)
tree375234b57dff8c845bdd8c5c925c3760f3b83a5e /myrepo/files/updater.lua
parent7e3c1561d5dd5e03926aab60b81c62c8b728cac4 (diff)
downloadturris-myrepo-0bcdf73271be4a4f9ca8c849c426b521365dcf30.tar.gz
turris-myrepo-0bcdf73271be4a4f9ca8c849c426b521365dcf30.tar.bz2
turris-myrepo-0bcdf73271be4a4f9ca8c849c426b521365dcf30.zip
Rename myrepo-cert to just myrepo
Diffstat (limited to 'myrepo/files/updater.lua')
-rw-r--r--myrepo/files/updater.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/myrepo/files/updater.lua b/myrepo/files/updater.lua
new file mode 100644
index 0000000..b9946c0
--- /dev/null
+++ b/myrepo/files/updater.lua
@@ -0,0 +1,12 @@
+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"
+})
+
+Install("myrepo")