summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Agnoletti <klaus@xenux.dk>2002-08-09 11:59:58 +0000
committerKlaus Agnoletti <klaus@xenux.dk>2002-08-09 11:59:58 +0000
commit6139077cfa1be70b3484b02cdc764bb64997145b (patch)
treeeebb0fa43e0881da86d0397cc9a269a7704a7bf6
parentca86bdff60fe6a13f6284de8738f989b1e927d93 (diff)
* Changed an if-statement to avoid problems when printing using samba and the nobody user.
-rwxr-xr-xpdfdistiller5
1 files changed, 4 insertions, 1 deletions
diff --git a/pdfdistiller b/pdfdistiller
index 7c4044a..3b1b494 100755
--- a/pdfdistiller
+++ b/pdfdistiller
@@ -51,7 +51,10 @@ echo "PDF directory: $PDFDIR" >> $LOGFILE
# generate output filename
OUTPUTFILENAME=
-if [ "$2" = "" ]; then
+
+#I found out that when the user 'nobody' prints, the script tries to mail the PDF
+#to that user - as a local mail. To avoid this, I changed the conditions in the if-statement below.
+if [ "$2" = "" -o "$2" = "nobody" ]; then
OUTPUTFILENAME="$PDFDIR/unknown-$PRINTTIME.pdf"
else
# OUTPUTFILENAME="$PDFDIR/${3//[^[:alnum:]]/_}.pdf"