summarylogtreecommitdiffstats
path: root/vdr-live.install
diff options
context:
space:
mode:
authorChristopher Reimer2015-06-08 11:08:27 +0200
committerChristopher Reimer2015-06-08 11:08:27 +0200
commit65b5f71a0c3dbb0134c473df3af87dbd0d097017 (patch)
tree0dea45970fa0920a59670b175c2aa8861fa068c0 /vdr-live.install
downloadaur-65b5f71a0c3dbb0134c473df3af87dbd0d097017.tar.gz
Sync from VDR4Arch (https://github.com/VDR4Arch/vdr4arch/commit/3bf8a4492e3b973a559fd2c53855b231e25c7e74)
Diffstat (limited to 'vdr-live.install')
-rw-r--r--vdr-live.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/vdr-live.install b/vdr-live.install
new file mode 100644
index 00000000000..b37bfe2e3df
--- /dev/null
+++ b/vdr-live.install
@@ -0,0 +1,17 @@
+post_install() {
+ mkdir -p /var/lib/vdr/plugins/live
+ cd /var/lib/vdr/plugins/live
+ if [ ! -e live.pem ] || [ ! -e live-key.pem ]; then
+ openssl req -new -x509 -keyout live-key.pem -out live.pem -days 9999 -nodes -batch
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ rm /var/lib/vdr/plugins/live/live.pem
+ rm /var/lib/vdr/plugins/live/live-key.pem
+ rmdir /var/lib/vdr/plugins/live 2> /dev/null
+}