Here is what I din on my Debian to “stripp back” the “carriage
returns”:
-
Enable pure-ftpd’s upload-script feature:
echo “yes” > /etc/pure-ftpd/conf/CallUploadScript -
Add option UPLOADSCRIPT in /etc/default/pure-ftpd-common:
UPLOADSCRIPT=/opt/bin/add-cr.sh -
“add-cr.sh” contains:
#!/bin/sh
/usr/bin/unix2dos -q -k “$1”
- unix2dos utility is included in dos2unix package and it adds
“carriage return” only to text files, binary files are not “touched”.
Regards,
Samuel Recebov
–
recebov
recebov’s Profile: http://forums.novell.com/member.php?userid=118792
View this thread: http://forums.novell.com/showthread.php?t=343206