summaryrefslogtreecommitdiffstats
path: root/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'postinst')
-rw-r--r--postinst7
1 files changed, 7 insertions, 0 deletions
diff --git a/postinst b/postinst
new file mode 100644
index 0000000..a7c50fe
--- /dev/null
+++ b/postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ ! -f /etc/default/authentic2 ]; then
+ echo '. /etc/authentic2/supann.conf' >/etc/default/authentic2
+elif ! grep -q supann.conf /etc/default/authentic2 2>/dev/null; then
+ echo '. /etc/authentic2/supann.conf' >>/etc/default/authentic2
+fi