From 73b09b3ad1dca72187bee4f83dd8185c39064b46 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sat, 29 Jan 2011 19:51:18 -0800 Subject: Added Piny::Auth. --- libpiny/debian/libpiny-perl.postinst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 libpiny/debian/libpiny-perl.postinst (limited to 'libpiny/debian/libpiny-perl.postinst') 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 -- cgit v1.2.3