README
####################################################################################
SCRIPT STEP BY STEP
####################################################################################
If you have a problem during setup.sh execution, you can install the plugin manually.
Report your bug at guillaume.priou@ocsinventory-ng.org
####################################################################################

=======================
setup.sh
=======================
* Check that locate is installed on the system
* Check that updatedb is installed on the system
* define Map.pm directory
* Ask user for mysql server information
* Ask mysql database name
* Copy cd_securitycenter directory from source to /ocsreports/plugins/computer_detail/
* Copy ms_plugins directory from source to /ocsreports/plugins/main_sections/ms_plugins
* Copy img/cd_securitycenter.png from source to /ocsreports/plugins/computer_detail/img/
* Copy img/cd_securitycenter_a.png from source to /ocsreports/plugins/computer_detail/img/
* Copy img/cd_securitycenter_d.png from source to /ocsreports/plugins/computer_detail/img/
* Backup old cd_config.txt and copy new cd_config.txt from source to /ocsreports/plugins/computer_detail/
* Stop Apache
* Backup old Map.pm and copy new Map.pm from source to $MAP_PM_PATH/ (path of Map.pm used
* Start Apache

======================
Upgrade your management server
======================
Before upgrading, you have to backup 
* cd_config.txt
* 4all_config.txt
Or adapt these files new version of these files

After upgrade your management server, you have to reactivate the plugin
* restore cd_config.txt
* restore 4all_config.txt 

======================
Misc
======================
Don't forget to place the vb script in agent directory (C:\Program Files\OCS Inventory Agent\Plugins)
Yous can use OCS deployment feature (method store), GPO or login script to place the script in the directory