aboutsummaryrefslogtreecommitdiff
path: root/myrepo/files
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
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')
-rw-r--r--myrepo/files/key.pub2
-rw-r--r--myrepo/files/key.sec2
-rw-r--r--myrepo/files/updater.lua12
3 files changed, 16 insertions, 0 deletions
diff --git a/myrepo/files/key.pub b/myrepo/files/key.pub
new file mode 100644
index 0000000..4173ed5
--- /dev/null
+++ b/myrepo/files/key.pub
@@ -0,0 +1,2 @@
+untrusted comment: private key cfb977a0d53c5424
+RWTPuXeg1TxUJC6EOmawdomx+1cuPaBx5g6B1A2nq0TI6Gf8mbRoU2w6
diff --git a/myrepo/files/key.sec b/myrepo/files/key.sec
new file mode 100644
index 0000000..5731869
--- /dev/null
+++ b/myrepo/files/key.sec
@@ -0,0 +1,2 @@
+untrusted comment: public key cfb977a0d53c5424
+RWRCSwAAAAC/rGfdjaQn9ZWPHvtqQrzm9dkd/bHNF4XPuXeg1TxUJCiZuBFQLxqoolLnufYHIHHGvgFbJpjnT1v8X2W831l+LoQ6ZrB2ibH7Vy49oHHmDoHUDaerRMjoZ/yZtGhTbDo=
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")