summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Agnoletti <klaus@xenux.dk>2003-02-21 12:46:26 +0000
committerKlaus Agnoletti <klaus@xenux.dk>2003-02-21 12:46:26 +0000
commit8882580b208a6624934065e551d67f9d45fb24cd (patch)
treeaa23149d4bb8a3f3aa4635f9c0aecf1a881b555e
parent8f6a20fbb52ae53c9c2370790c810d2e68621f78 (diff)
* corrected script so the PDF created (when not mailing it) has rights so everybody in fsdamin can delete it.
-rwxr-xr-xpdfdistiller5
1 files changed, 3 insertions, 2 deletions
diff --git a/pdfdistiller b/pdfdistiller
index fac6bd0..3a39692 100755
--- a/pdfdistiller
+++ b/pdfdistiller
@@ -102,8 +102,9 @@ if [ "$user" != "" ]; then
echo "Send as pdf to $user using mimeit" >> $LOGFILE
cat $OUTPUTFILENAME | /usr/bin/mimeit application/pdf $user "PDF print" \
&& rm $OUTPUTFILENAME
- else
- chown $user $OUTPUTFILENAME
+ else
+ #The following ensures that PDF has filerights so everybody of fsadmin group can delete it.
+ chown $user:fsadmin $OUTPUTFILENAME
fi
fi