Skip to content

Commit

Permalink
Merge pull request #76 from m03/modify-post-update-install
Browse files Browse the repository at this point in the history
Allow multiple scripts to be called from post update
  • Loading branch information
rasa committed Aug 20, 2016
2 parents 5b09ed7 + 309315a commit 3f4c84a
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions floppy/_post_update_install.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
ECHO OFF
@setlocal EnableDelayedExpansion EnableExtensions
@for %%i in (%~dp0\_packer_config*.cmd) do @call "%%~i"
@if defined PACKER_DEBUG (@echo on) else (@echo off)

REM This script is not included on the floppy by default.
REM If you're using update.bat, include this file if you
REM want to run scripts following all updates/reboots.
a:\zz-start-sshd.cmd

title Running post update scripts. Please wait...

@for %%i in (%~dp0\zz*.cmd) do (
echo ==^> Running "%%~i"
@call "%%~i"
)

:exit0
ver>nul
goto :exit

:exit1
verify other 2>nul

:exit

0 comments on commit 3f4c84a

Please sign in to comment.