forked from BrianLees/agent_c_framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagentc.bat
More file actions
29 lines (24 loc) · 1016 Bytes
/
Copy pathagentc.bat
File metadata and controls
29 lines (24 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
SETLOCAL
cd /d "%~dp0"
CALL build_support\windows.env.bat
:: Create directories if they don't exist
if not exist "%AGENT_C_CONFIG_PATH%" mkdir "%AGENT_C_CONFIG_PATH%"
if not exist "%AGENT_C_IMAGES_PATH%" mkdir "%AGENT_C_IMAGES_PATH%"
if not exist "%AGENT_C_AGENTS_PATH%" mkdir "%AGENT_C_AGENTS_PATH%"
if not exist "%AGENT_C_SAVED_CHAT_FOLDER%" mkdir "%AGENT_C_SAVED_CHAT_FOLDER%"
:: Check if config file exists
if not exist "%AGENT_C_CONFIG_PATH%\agent_c.config" (
copy build_support\config\agent_c.config.example "%AGENT_C_CONFIG_PATH%\agent_c.config"
copy build_support\data\*.db "%AGENT_C_CONFIG_PATH%"
echo ** Warning**: Configuration file not found at %AGENT_C_CONFIG_PATH%\agent_c.config
echo An example file has been added to %AGENT_C_CONFIG_PATH%
echo.
echo Please edit the configuration file and rerun this script.
echo.
pause
start notepad "%AGENT_C_CONFIG_PATH%\agent_c.config"
exit /b 1
)
docker-compose -f docker-compose.yml -p agent_c %*
ENDLOCAL