Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from AntelopeIO/larryk85/path_win_fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
Bucky Kittinger authored Aug 18, 2022
2 parents 48591c8 + bf82aa3 commit 61cd4c2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.win
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN mv my_init /sbin
RUN ./bootstrap_env.sh
RUN ./setup_system.sh

RUN mkdir /home/www-data/nodes
RUN mkdir -p /home/www-data/nodes
RUN cp /app/config.ini /home/www-data/config.ini

# thanks to github.com/phusion
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@echo off

SET mypath=%~dp0
docker build --no-cache -f Dockerfile.win -t dune %mypath%
docker build --no-cache -f Dockerfile.win -t dune %mypath%
15 changes: 14 additions & 1 deletion dune.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
@echo off

SET mypath=%~dp0
python3 %mypath%\src\dune %*

WHERE /q python3
IF ERRORLEVEL 1 (
WHERE /q python
IF ERRORLEVEL 1 (
ECHO "Python/3 was not found, please install."
EXIT /B
) ELSE (
python %mypath%\src\dune %*
)
) ELSE (
python3 %mypath%\src\dune %*
)

0 comments on commit 61cd4c2

Please sign in to comment.