* lrde-upload.sh: Here.
---
ChangeLog | 6 ++++++
lrde-upload.sh | 8 ++++----
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c06a0ff..c537871 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2010-04-29 Roland Levillain <roland(a)lrde.epita.fr>
+ Change permissions on uploaded files instead of on original files.
+
+ * lrde-upload.sh: Here.
+
+2010-04-29 Roland Levillain <roland(a)lrde.epita.fr>
+
Fix read permissions on uploaded PDF files.
* lrde-upload.sh: Here.
diff --git a/lrde-upload.sh b/lrde-upload.sh
index 80244e8..023f346 100755
--- a/lrde-upload.sh
+++ b/lrde-upload.sh
@@ -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
--
1.5.6.5
Show replies by date