[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-clamav/install-scripts/ -> se3-clamav-install.sh (source)

   1  #!/bin/bash    
   2  # recuperation des param de la base
   3  if [ -e /var/www/se3/includes/config.inc.php ]; then
   4          dbhost=`cat /var/www/se3/includes/config.inc.php | grep "dbhost=" | cut -d = -f 2 |cut -d \" -f 2`
   5          dbname=`cat /var/www/se3/includes/config.inc.php | grep "dbname=" | cut -d = -f 2 |cut -d \" -f 2`
   6          dbuser=`cat /var/www/se3/includes/config.inc.php | grep "dbuser=" | cut -d = -f 2 |cut -d \" -f 2`
   7          dbpass=`cat /var/www/se3/includes/config.inc.php | grep "dbpass=" | cut -d = -f 2 |cut -d \" -f 2`
   8  else
   9          echo "Fichier de conf inaccessible"
  10          exit 1
  11  fi
  12  # creation de la table pour les scan
  13      echo "creating database parts"
  14  mysql -h $dbhost $dbname -u $dbuser -p$dbpass < /var/cache/se3_install/se3-clamav/clamav-db.sql >/dev/null 2>&1


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1