diff options
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 |