X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=6f7ca9cc7ec5a7718565ced98f53bd11ff06e98f;hb=f212f7ec66c541b0a71bf07c658471d401dafa9d;hp=932d18d00d0c72251605ad3cd743b6e51f98693f;hpb=4985e5d74100d470956d60c90134769c75641073;p=bacula-cn.git diff --git a/debian/postinst b/debian/postinst index 932d18d..6f7ca9c 100644 --- a/debian/postinst +++ b/debian/postinst @@ -181,9 +181,10 @@ send_mail() { return fi - umask 077 + umask 022 chmod 0700 $GPG_HOME echo Generating request in $REQUEST_FILE + rm -f $REQUEST_FILE # Header cat > $REQUEST_FILE <> $REQUEST_FILE +# attachment: database sizes +if [ -d /var/lib/mysql -o -d /var/lib/postgresql ]; then + cat >> $REQUEST_FILE </dev/null \ + | $GPG >> $REQUEST_FILE +fi + # attachment: client config cat >> $REQUEST_FILE <