[Scodoc-devel] [SVN] Scolar : [1308] Ajout d' information sur les bases de donnes au diagnostic (debug).

eviennet at lipn.univ-paris13.fr eviennet at lipn.univ-paris13.fr
Jeu 19 Déc 12:41:04 CET 2013


Une pièce jointe HTML a été nettoyée...
URL: <https://www-rt.iutv.univ-paris13.fr/pipermail/scodoc-devel/attachments/20131219/91a6b597/attachment.html>
-------------- section suivante --------------
Modified: branches/ScoDoc7/config/diagnostic.sh
===================================================================
--- branches/ScoDoc7/config/diagnostic.sh	2013-12-18 19:50:04 UTC (rev 1307)
+++ branches/ScoDoc7/config/diagnostic.sh	2013-12-19 11:41:04 UTC (rev 1308)
@@ -16,7 +16,7 @@
 mkdir $TMP
 
 # Files to copy:
-FILES=/etc/debian_version /etc/apt /etc/apache2
+FILES="/etc/debian_version /etc/apt /etc/apache2"
 
 
 echo "ScoDoc diagnostic: informations about your system will be sent to $DEST_ADDRESS"
@@ -48,6 +48,13 @@
 (cd /opt/scodoc/instance/Products/ScoDoc; svnversion >  $TMP/svn.version)
 ls -laR /opt/scodoc/instance/Products/ScoDoc > $TMP/ls-laR
 
+# Gather some information about databases:
+(su postgres -c "psql -l") > "${TMP}/psql-l.out"
+for dept in depts/*.cfg
+do
+  cnx=$(cat $dept)
+  (su postgres -c "echo '\dt' | psql -d $cnx") > "${TMP}/psql-$(basename ${dept%%.*}).out"
+done
 
 # copy files:
 for f in $FILES 


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