summaryrefslogtreecommitdiff
path: root/libpiny/debian/libpiny-perl.postinst
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2011-01-29 19:51:18 -0800
committerJulian Blake Kongslie <jblake@omgwallhack.org>2011-01-29 19:51:18 -0800
commit73b09b3ad1dca72187bee4f83dd8185c39064b46 (patch)
treecbfd5346659f2a39e75a891978b8d0773dd980a9 /libpiny/debian/libpiny-perl.postinst
parent7262b1cbb3fdb41ea6c6f8ea6220abb98f08aa5f (diff)
downloadpiny-code-73b09b3ad1dca72187bee4f83dd8185c39064b46.tar.gz
piny-code-73b09b3ad1dca72187bee4f83dd8185c39064b46.zip
Added Piny::Auth.
Diffstat (limited to 'libpiny/debian/libpiny-perl.postinst')
-rwxr-xr-xlibpiny/debian/libpiny-perl.postinst16
1 files changed, 16 insertions, 0 deletions
diff --git a/libpiny/debian/libpiny-perl.postinst b/libpiny/debian/libpiny-perl.postinst
new file mode 100755
index 0000000..ba29e39
--- /dev/null
+++ b/libpiny/debian/libpiny-perl.postinst
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+
+ configure)
+
+ if [ ! -f /etc/libpiny.key ]; then
+ umask 0177
+ dd if=/dev/random of=/etc/libpiny.key bs=512 count=1
+ fi
+
+ ;;
+
+esac