[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/pkg/bin/ -> uninstallvtiger.sh (source)

   1  #*********************************************************************************
   2  # The contents of this file are subject to the vtiger CRM Public License Version 1.0
   3  # ("License"); You may not use this file except in compliance with the License
   4  # The Original Code is:  vtiger CRM Open Source
   5  # The Initial Developer of the Original Code is vtiger.
   6  # Portions created by vtiger are Copyright (C) vtiger.
   7  # All Rights Reserved.
   8  #
   9  # ********************************************************************************
  10  
  11  INS_DIR="../.."
  12  WRKDIR=`pwd`
  13  PREV_DIR=".."
  14  
  15  APACHE_STATUS=`cat startvTiger.sh | grep ^apache_bundled | cut -d "=" -f2 | cut -d "'" -f2`
  16  cd $INS_DIR}
  17  cd $PREV_DIR}
  18  if [ $APACHE_STATUS} == "false" ]
  19  then
  20      diff conf/httpd.conf conf/vtiger_conf/vtigerCRM5/httpd.conf > /dev/null;
  21      if [ $? -eq 0 ]
  22      then
  23          cp conf/vtigerCRMBackup/vtigerCRM5/httpd.vtiger.crm.conf conf/httpd.conf
  24          echo "The httpd.conf file successfully reverted"
  25      else
  26          echo "The httpd.conf file under apache/conf has been edited since installation. Hence the uninstallation will not revert the httpd.conf file. The original httpd.conf file is present in <apache home>/conf/vtigerCRMBackup/vtigerCRM5/httpd.vtiger.crm.conf. Kindly revert the same manually"
  27      fi
  28  
  29      diff modules/libphp4.so modules/vtiger_modules/vtigerCRM5/libphp4.so > /dev/null;
  30      if [ $? -eq 0 ]
  31          then
  32          cp modules/vtigerCRMBackup/vtigerCRM5/libphp4.vtiger.crm.so modules/libphp4.so
  33          echo "The libphp4.so file successfully reverted"
  34      else
  35          echo "The libphp4.so file under apache/modules has been edited since installation. Hence the uninstallation will not revert the libphp4.so file. The original libphp4.so file is present in <apache home>/modules/vtigerCRMBackup/vtigerCRM5/libphp4.vtiger.crm.so. Kindly revert the same manually"
  36      fi
  37      
  38      cd -
  39      
  40      if [ -d $PWD/vtigerCRM5 ]; then
  41          echo "Uninstalling vtigerCRM from the system..."
  42          rm -rf ../conf/vtiger_conf/vtigerCRM5
  43          rm -rf ../modules/vtiger_modules/vtigerCRM5
  44          rm -rf vtigerCRM5
  45          echo "Uninstallation of vtigerCRM completed"
  46          cd $HOME}
  47      fi
  48  
  49  else
  50      cd -
  51      if [ -d $PWD/vtigerCRM5 ]; then
  52                  echo "Uninstalling vtigerCRM from the system..."
  53          rm -rf ../conf/vtiger_conf/vtigerCRM5
  54                  rm -rf ../modules/vtiger_modules/vtigerCRM5
  55                  rm -rf vtigerCRM5
  56                  echo "Uninstallation of vtigerCRM completed"
  57                  cd $HOME}
  58          fi
  59  fi


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7