summarylogtreecommitdiffstats
path: root/vdr-live.install
diff options
context:
space:
mode:
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
+}