summaryrefslogtreecommitdiffstats
path: root/debian/ttyd.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-19 11:32:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-19 11:32:38 +0000
commit0409e98822a933e551cbbbfa6ac9542cc24f3be6 (patch)
tree097218ff5e3cc0be95fa098f9f6a7b7e8f083e2f /debian/ttyd.postinst
parentAdding TODO file. (diff)
downloadttyd-0409e98822a933e551cbbbfa6ac9542cc24f3be6.tar.xz
ttyd-0409e98822a933e551cbbbfa6ac9542cc24f3be6.zip
Updating.tmp-apache2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/ttyd.postinst')
-rwxr-xr-xdebian/ttyd.postinst28
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/ttyd.postinst b/debian/ttyd.postinst
new file mode 100755
index 0000000..b3a83c8
--- /dev/null
+++ b/debian/ttyd.postinst
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ configure)
+ a2enmod rewrite
+ a2enmod proxy
+ a2enmod proxy_http
+ a2enmod proxy_http2
+ a2enmod proxy_wstunnel
+
+ a2enconf ttyd
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0