[Scodoc-devel] [SVN] Scolar : [1282] fix

eviennet at lipn.univ-paris13.fr eviennet at lipn.univ-paris13.fr
Sam 12 Oct 20:03:30 CEST 2013


Une pièce jointe HTML a été nettoyée...
URL: <https://www-rt.iutv.univ-paris13.fr/pipermail/scodoc-devel/attachments/20131012/353522fa/attachment.html>
-------------- section suivante --------------
Modified: branches/ScoDoc7/config/config.sh
===================================================================
--- branches/ScoDoc7/config/config.sh	2013-10-12 17:27:51 UTC (rev 1281)
+++ branches/ScoDoc7/config/config.sh	2013-10-12 18:03:30 UTC (rev 1282)
@@ -1,6 +1,7 @@
 
 
 # ScoDoc: environment variables
+umask 0022
 
 export SCODOC_DIR=${PWD%/*}
 # normalement: /opt/scodoc/Products/ScoDoc

Modified: branches/ScoDoc7/config/upgrade.sh
===================================================================
--- branches/ScoDoc7/config/upgrade.sh	2013-10-12 17:27:51 UTC (rev 1281)
+++ branches/ScoDoc7/config/upgrade.sh	2013-10-12 18:03:30 UTC (rev 1282)
@@ -49,11 +49,24 @@
 fi
 
 # Fix some permissions which may have been altered in the way:
-chown -R root.root "$SCODOC_DIR"/config
+chown root.www-data "$SCODOC_DIR" # important to create .pyc
+chmod 775 "${SCODOC_DIR}"
+chmod a+r "$SCODOC_DIR"/*.py
+
+chown -R root.www-data "$SCODOC_DIR"/config
+chmod 775 "$SCODOC_DIR"/config
 chmod a+rx "$SCODOC_DIR"/config/postupgrade-db.py
 chmod a+r "$SCODOC_DIR"/config/scodocutils.py
-chmod a+r "$SCODOC_DIR"/*.py
+chmod 775 "$SCODOC_DIR"/config/depts
+
+chown -R root.www-data "$SCODOC_DIR"/misc
 chmod -R a+r "$SCODOC_DIR"/misc
+# ScoDoc must be able to write to this directory:
+chgrp -R www-data "${SCODOC_DIR}"/static/photos
+chmod -R g+w "${SCODOC_DIR}"/static/photos
+# Important to create .pyc:
+chgrp -R www-data "${SCODOC_DIR}"/ZopeProducts
+chmod -R g+w "${SCODOC_DIR}"/ZopeProducts
 
 # Se recharge car ce fichier peut avoir change durant le svn up !
 if [ -z "$SCODOC_UPGRADE_RUNNING" ]
@@ -63,17 +76,6 @@
   exit 0
 fi
 
-# check permissions
-# ScoDoc must be able to write to this directory:
-chgrp -R www-data "${SCODOC_DIR}"/static/photos
-chmod -R g+w "${SCODOC_DIR}"/static/photos
-
-# Important to create .pyc:
-chgrp www-data "${SCODOC_DIR}"
-chmod g+w "${SCODOC_DIR}"
-chgrp -R www-data "${SCODOC_DIR}"/ZopeProducts
-chmod -R g+w "${SCODOC_DIR}"/ZopeProducts
-
 # post-upgrade scripts
 echo "Executing post-upgrade script..."
 "$SCODOC_DIR"/config/postupgrade.py


Plus d'informations sur la liste de diffusion Scodoc-devel