Recreate request file with public permissions.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Wed, 9 Mar 2011 13:05:24 +0000 (14:05 +0100)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Wed, 9 Mar 2011 13:05:24 +0000 (14:05 +0100)
debian/postinst

index 932d18d..a192ddc 100644 (file)
@@ -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 <<EOF