25 lines
594 B
Batchfile
25 lines
594 B
Batchfile
@echo off
|
|
setlocal
|
|
cd /d "%~dp0"
|
|
|
|
if not exist "smartb2bsync-enova.exe" (
|
|
echo Brak smartb2bsync-enova.exe. Najpierw uruchom publish.ps1.
|
|
exit /b 1
|
|
)
|
|
|
|
if not exist "..\config" mkdir "..\config"
|
|
if not exist "..\config\enova.json" (
|
|
if not exist "..\config\enova.json.sample" (
|
|
echo Brak ..\config\enova.json.sample.
|
|
exit /b 1
|
|
)
|
|
copy /Y "..\config\enova.json.sample" "..\config\enova.json" >nul
|
|
echo Utworzono lokalna konfiguracje ..\config\enova.json.
|
|
)
|
|
|
|
smartb2bsync-enova.exe install
|
|
if errorlevel 1 exit /b %errorlevel%
|
|
|
|
smartb2bsync-enova.exe start
|
|
exit /b %errorlevel%
|