-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Improve service init script and logs (#147)"
This reverts commit dc94c08.
- Loading branch information
Showing
5 changed files
with
10 additions
and
120 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
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
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
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,20 +1,19 @@ | ||
#! /bin/sh -xe | ||
#! /bin/sh -e | ||
|
||
# run from repo root | ||
# ./build.sh | ||
# ./distro/test.sh | ||
|
||
USERPROFILE="$(powershell.exe -c 'Write-Host -NoNewline $env:USERPROFILE')" | ||
DUMP=wsl-vpnkit.tar.gz | ||
TAG_NAME=wslvpnkit | ||
|
||
# build | ||
docker build -t $TAG_NAME -f ./distro/Dockerfile . | ||
CONTAINER_ID=$(docker create $TAG_NAME) | ||
docker export $CONTAINER_ID | gzip > $DUMP | ||
docker container rm $CONTAINER_ID | ||
ls -la $DUMP | ||
|
||
# reinstall | ||
wsl.exe --unregister wsl-vpnkit || : | ||
wsl.exe --import wsl-vpnkit --version 2 "$USERPROFILE\\wsl-vpnkit" $DUMP | ||
rm $DUMP | ||
wsl.exe -d wsl-vpnkit |