diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-01-29 19:51:18 -0800 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-01-29 19:51:18 -0800 |
commit | 73b09b3ad1dca72187bee4f83dd8185c39064b46 (patch) | |
tree | cbfd5346659f2a39e75a891978b8d0773dd980a9 /libpiny/debian/libpiny-perl.postinst | |
parent | 7262b1cbb3fdb41ea6c6f8ea6220abb98f08aa5f (diff) | |
download | piny-code-73b09b3ad1dca72187bee4f83dd8185c39064b46.tar.gz piny-code-73b09b3ad1dca72187bee4f83dd8185c39064b46.zip |
Added Piny::Auth.
Diffstat (limited to 'libpiny/debian/libpiny-perl.postinst')
-rwxr-xr-x | libpiny/debian/libpiny-perl.postinst | 16 |
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 |