summarylogtreecommitdiffstats
path: root/janus-gateway.install
diff options
context:
space:
mode:
authorDaichi Shinozaki2016-01-29 11:32:17 +0000
committerDaichi Shinozaki2016-01-29 11:32:17 +0000
commitfb2bc8c3b8567b3b6f709aa62d147f9f2ca11dd1 (patch)
treec1d78f3d8ca72e2fd338c5797e9ac11f76ed7174 /janus-gateway.install
downloadaur-fb2bc8c3b8567b3b6f709aa62d147f9f2ca11dd1.tar.gz
Initial import.
Diffstat (limited to 'janus-gateway.install')
-rw-r--r--janus-gateway.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/janus-gateway.install b/janus-gateway.install
new file mode 100644
index 000000000000..465776fe315b
--- /dev/null
+++ b/janus-gateway.install
@@ -0,0 +1,10 @@
+post_install() {
+ openssl req -x509 -batch -nodes -newkey rsa:1024 \
+ -keyout /usr/share/janus/certs/mycert.key \
+ -out /usr/share/janus/certs/mycert.pem
+}
+
+pre_remove() {
+ rm -f /usr/share/janus/certs/mycert.{key,pem}
+}
+