Fix pour la remonté des journaux fusioninventory agent

tags/0.1.1 0.1.1
Daniel Berteaud 13 years ago
parent ba6fcd9b35
commit b1e46a56ef
  1. 6
      packages/logs.xml
  2. 5
      wpkg-logs.spec

@ -2,7 +2,7 @@
<packages>
<package id="logs"
name="Journaux d'installation"
revision="10"
revision="11"
priority="1"
execute="always">
@ -11,8 +11,8 @@
<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"' />
<install architecture='x64' timeout="15" cmd='%COMSPEC% /C if exists "%PROGRAMFILES(x86)%\FusionInventory-Agent\agent-log.txt" copy /Y "%PROGRAMFILES(x86)%\FusionInventory-Agent\agent-log.txt" "%WPKGLOGS%\fusioninventory\%COMPUTERNAME%.txt"' />
<install architecture='x86' timeout="15" cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\FusionInventory-Agent\agent-log.txt" copy /Y "%PROGRAMFILES%\FusionInventory-Agent\agent-log.txt" "%WPKGLOGS%\fusioninventory\%COMPUTERNAME%.txt"' />
<install architecture='x64' timeout="15" cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\FusionInventory-Agent\agent-log.txt" copy /Y "%PROGRAMFILES(x86)%\FusionInventory-Agent\agent-log.txt" "%WPKGLOGS%\fusioninventory\%COMPUTERNAME%.txt"' />
<upgrade include="install" />
<downgrade include="install" />
</package>

@ -1,5 +1,5 @@
%define package logs
%define version 0.1.0
%define version 0.1.1
%define release 0.beta1
Name: wpkg-%{package}
@ -41,6 +41,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.1-1
- Fix fusioninventory agent log copy
* Wed Jun 6 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1.0-1
- Change version scheme

Loading…
Cancel
Save