Commit e30e6d74 authored by Roland Levillain's avatar Roland Levillain
Browse files

Change permissions on uploaded files instead of on original files.

	* lrde-upload.sh: Here.
parent d843b6cd
2010-04-29 Roland Levillain <roland@lrde.epita.fr>
Change permissions on uploaded files instead of on original files.
* lrde-upload.sh: Here.
2010-04-29 Roland Levillain <roland@lrde.epita.fr>
Fix read permissions on uploaded PDF files.
......
......@@ -46,13 +46,13 @@ cp milena/doc/white-paper.pdf $DEST_DOC && chmod a+r $DEST_DOC/white-paper.pdf
rm -rf $DEST_DOC/user-refman.tmp
rm -rf $DEST_DOC/white-paper.tmp
# `make distcheck' sets umask to 077. Restore read permissions for all.
chmod -R a+rX milena/doc/user-refman
chmod -R a+rX milena/doc/white-paper
cp -pR milena/doc/user-refman $DEST_DOC/user-refman.tmp
cp -pR milena/doc/white-paper $DEST_DOC/white-paper.tmp
# Likewise, set permissions for all on uploaded directories.
chmod -R a+rX $DEST_DOC/user-refman.tmp
chmod -R a+rX $DEST_DOC/white-paper.tmp
if test -e $DEST_DOC/user-refman; then
rm -rf $DEST_DOC/user-refman.old
mv -f $DEST_DOC/user-refman $DEST_DOC/user-refman.old
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment