diff options
author | Klaus Agnoletti <klaus@xenux.dk> | 2003-02-21 12:46:26 +0000 |
---|---|---|
committer | Klaus Agnoletti <klaus@xenux.dk> | 2003-02-21 12:46:26 +0000 |
commit | 8882580b208a6624934065e551d67f9d45fb24cd (patch) | |
tree | aa23149d4bb8a3f3aa4635f9c0aecf1a881b555e | |
parent | 8f6a20fbb52ae53c9c2370790c810d2e68621f78 (diff) |
* corrected script so the PDF created (when not mailing it) has rights so everybody in fsdamin can delete it.
-rwxr-xr-x | pdfdistiller | 5 |
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 |