-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from m03/modify-post-update-install
Allow multiple scripts to be called from post update
- Loading branch information
Showing
1 changed file
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |