From 787000bc6afc67dadc8ef912e42b5278ad12e517 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 17 May 2016 16:34:57 +0200 Subject: [PATCH] Revert "Use a shutdown script to upgrade FWSUpdates" This reverts commit bb370e0552ff58505e1cd350c45a85b6372845ab. --- packages/fwsupdates.xml | 9 ++++----- .../shares/tools/files/scripts/fwsupdates/install.bat/20script | 2 -- softwares/{fwsupdates_upgrade.bat => offline_upgrade.bat} | 0 3 files changed, 4 insertions(+), 7 deletions(-) rename softwares/{fwsupdates_upgrade.bat => offline_upgrade.bat} (100%) diff --git a/packages/fwsupdates.xml b/packages/fwsupdates.xml index 30005e3..768abf7 100755 --- a/packages/fwsupdates.xml +++ b/packages/fwsupdates.xml @@ -6,13 +6,12 @@ reboot="false" priority="95"> - + - @@ -36,10 +35,10 @@ - - - + + + diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/tools/files/scripts/fwsupdates/install.bat/20script b/root/etc/e-smith/templates/home/e-smith/files/shares/tools/files/scripts/fwsupdates/install.bat/20script index 0113447..b163f73 100644 --- a/root/etc/e-smith/templates/home/e-smith/files/shares/tools/files/scripts/fwsupdates/install.bat/20script +++ b/root/etc/e-smith/templates/home/e-smith/files/shares/tools/files/scripts/fwsupdates/install.bat/20script @@ -1,7 +1,6 @@ net use \\%IPASSERELLE_IP%\wpkg if not exist "%SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown" mkdir "%SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown" copy /Y "\\%IPASSERELLE_IP%\wpkg\softwares\fwsupdates\fwsupdates.vbs" "%SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown\" -copy /Y "\\%IPASSERELLE_IP%\wpkg\softwares\fwsupdates\fwsupdates_upgrade.bat "%SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown\" del /q "%SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown\wpkg.bat" if not exist "%SystemDrive%\FWSUpdates" mkdir "%SystemDrive%\FWSUpdates" xcopy /E /Y "\\%IPASSERELLE_IP%\wpkg\softwares\fwsupdates\FWSUpdates\*" "%SystemDrive%\FWSUpdates\" @@ -25,7 +24,6 @@ regedit /S "\\%IPASSERELLE_IP%\wpkg\settings\fwsupdates\gp.reg" regedit /S "\\%IPASSERELLE_IP%\wpkg\settings\fwsupdates\dav_limit.reg" regini "\\%IPASSERELLE_IP%\wpkg\settings\fwsupdates\run_on_shutdown_reg.txt" cscript //Nologo "\\%IPASSERELLE_IP%\wpkg\softwares\fwsupdates\localgp.vbs" fwsupdates.vbs false MACHINE -cscript //Nologo "\\%IPASSERELLE_IP%\wpkg\softwares\fwsupdates\localgp.vbs" fwsupdates_upgrade.bat false MACHINE cscript "\\%IPASSERELLE_IP%\wpkg\softwares\fwsupdates\create_shortcut.vbs" schtasks.exe /Create /tn "sync_wpkg" /sc hourly /mo 3 /ru "SYSTEM" /tr "%SystemDrive%\FWSUpdates\bin\delayed_sync.bat" /f robocopy /MIR /R:10 \\%IPASSERELLE_IP%\wpkg\ %SystemDrive%\FWSUpdates\repository\ diff --git a/softwares/fwsupdates_upgrade.bat b/softwares/offline_upgrade.bat similarity index 100% rename from softwares/fwsupdates_upgrade.bat rename to softwares/offline_upgrade.bat