service apache2 stop
mkdir /home/backup_ocs
cp /etc/apache2/conf-available/z-ocsinventory-server.conf /etc/apache2/conf-available/zz-ocsinventory-restapi.conf /etc/apache2/conf-available/ocsinventory-reports.conf /home/backup_ocs/ && cp /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php /home/backup_ocs/
mysqldump -u root -p –all-databases > /home/backup_ocs/ocsdbbackup.sql
cp ocsinventory-reports.conf z-ocsinventory-server.conf zz-ocsinventory-restapi.conf /etc/apache2/conf-available/ && cp dbconfig.inc.php /usr/share/ocsinventory-reports/ocsreports/
tar –xvzf OCSNG_UNIX_SERVER-2.x.x.tar.gz
cd OCSNG_UNIX_SERVER-2.x.x
sh setup.sh
cd /home/backup_ocs
cp ocsinventory-reports.conf z-ocsinventory-server.conf zz-ocsinventory-restapi.conf /etc/apache2/conf-available/ && cp dbconfig.inc.php /usr/share/ocsinventory-reports/ocsreports/
rm /usr/share/ocsinventory-reports/ocsreports/install.php
/usr/share/ocsinventory-reports/ocsreports# pico backend/AUTH/auth.php dosyasında “$list_methode = array(0 => “local.php”,1=> “ldap.php”);” ,den sonraki kısmı ben ekledim ldap kullanıcıları login olması adına.
service apache2 start
Bazen veritabanını web konsolu üzerinden güncellemek gerekir, web konsolunda güncelle’yi tıklamanız yeterlidir.
http://download.ocsinventory-ng.org/nightly/