[Scodoc-devel] [SVN] Scolar : [1274] Fix ScoDoc7 upgrade script.

eviennet at lipn.univ-paris13.fr eviennet at lipn.univ-paris13.fr
Sam 12 Oct 18:43:58 CEST 2013


Une pièce jointe HTML a été nettoyée...
URL: <https://www-rt.iutv.univ-paris13.fr/pipermail/scodoc-devel/attachments/20131012/8e036657/attachment.html>
-------------- section suivante --------------
Modified: branches/ScoDoc7/config/postupgrade.py
===================================================================
--- branches/ScoDoc7/config/postupgrade.py	2013-10-06 15:18:20 UTC (rev 1273)
+++ branches/ScoDoc7/config/postupgrade.py	2013-10-12 16:43:58 UTC (rev 1274)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2.6
+#!/opt/zope213/bin/python
 
 """
 ScoDoc post-upgrade script.

Modified: branches/ScoDoc7/config/upgrade.sh
===================================================================
--- branches/ScoDoc7/config/upgrade.sh	2013-10-06 15:18:20 UTC (rev 1273)
+++ branches/ScoDoc7/config/upgrade.sh	2013-10-12 16:43:58 UTC (rev 1274)
@@ -26,7 +26,7 @@
 if [ -e "$SCODOC_DIR"/config/scodoc.sn ]
 then
   SN=$(cat "$SCODOC_DIR"/config/scodoc.sn)
-  if [ ${SN:0:5} == '<body' ] 
+  if [[ -n "$SN" && ${SN:0:5} == '<body' ]]
   then
     SN='' # fix for invalid previous replies
   fi 


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