Correction de la création du rep fusioninventory

tags/0.1+0.3 0.1+0.3
Daniel Berteaud 13 years ago
parent 472ad2431d
commit 898742a93c
  1. 4
      packages/logs.xml
  2. 5
      wpkg-logs.spec

@ -2,13 +2,13 @@
<packages>
<package id="logs"
name="Journaux d'installation"
revision="9"
revision="10"
priority="1"
execute="always">
<install timeout="5" cmd='%COMSPEC% /C if not exist "%WPKGLOGS%\logs" mkdir %WPKGLOGS%\logs' />
<install timeout="5" cmd='%COMSPEC% /C if not exist "%WPKGLOGS%\databases" mkdir %WPKGLOGS%\databases' />
<install timeout="5" cmd='%COMSPEC% /C if not exist "%WPKGLOGS%\databases" mkdir %WPKGLOGS%\fusioninventory' />
<install timeout="5" cmd='%COMSPEC% /C if not exist "%WPKGLOGS%\fusioninventory" mkdir %WPKGLOGS%\fusioninventory' />
<install timeout="15" cmd='%COMSPEC% /C copy /Y "%SYSTEMROOT%\system32\wpkg.xml" "%WPKGLOGS%\databases\%COMPUTERNAME%.xml"' />
<install timeout="15" cmd='%COMSPEC% /C copy /Y "%TEMP%\wpkg-%COMPUTERNAME%.log" "%WPKGLOGS%\logs\%COMPUTERNAME%.log"' />
<install architecture='x86' timeout="15" cmd='%COMSPEC% /C if exists "%PROGRAMFILES%\FusionInventory-Agent\agent-log.txt" copy /Y "%PROGRAMFILES%\FusionInventory-Agent\agent-log.txt" "%WPKGLOGS%\fusioninventory\%COMPUTERNAME%.txt"' />

@ -1,6 +1,6 @@
%define package logs
%define version 0.1
%define realversion 0.2
%define realversion 0.3
%define release 0.beta1
Name: wpkg-%{package}
@ -42,6 +42,9 @@ cp -r packages/* %{buildroot}/home/e-smith/files/shares/wpkg/files/packages/
/bin/rm -rf %{buildroot}
%changelog
* Wed Jun 6 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1+0.3-1
- Fix fusioninventory dir creation
* Tue Jun 5 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1+0.2-1
- Copy fusioninventory-agent logs

Loading…
Cancel
Save