Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sea5kg committed Mar 25, 2023
1 parent b6f7339 commit 188f478
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ services:
ctf01d_db:
image: mysql:5.7
volumes:
- "./tmp/mysql_database:/var/lib/mysql"
- "./mysql_database:/var/lib/mysql"
restart: always
environment:
MYSQL_ROOT_PASSWORD: KzhyntJxwt
Expand Down Expand Up @@ -109,8 +109,9 @@ In the new terminal/console we can change default configuration to what we want.

Attach to running container with a bash command line:
```
$ $ docker exec -it -w /root ctf01d_jury_my_game bash
root@df281aedde7d:~#
$ docker exec -it -w /root ctf01d_jury_my_game bash
root@df281aedde7d:~# ctf01d version
ctf01d v0.4.5
```

Now we can use some commands from `ctf01d`
Expand Down
2 changes: 1 addition & 1 deletion src/argument_processors/argument_processor_start.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ bool ArgumentProcessorStart::applyParameterArgument(
int ArgumentProcessorStart::exec(const std::vector<std::string> &vRoutes, const std::vector<std::string> &vSubParams) {
WsjcppLog::info(TAG, "Starting...");
if (!WsjcppEmployees::init({})) {
WsjcppLog::err(TAG, "Failed.");
WsjcppLog::err(TAG, "Start failed on step init configs.");
return -1;
}

Expand Down
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int main(int argc, const char* argv[]) {
}
sWorkDir = WsjcppCore::doNormalizePath(sWorkDir);
if (WsjcppCore::fileExists(sWorkDir + "/config.yml")) {
std::cout << "Found automaticly workdir: " << sWorkDir << std::endl;
std::cout << "Automatically detected workdir: " << sWorkDir << std::endl;
EmployConfig *pConfig = findWsjcppEmploy<EmployConfig>();
pConfig->setWorkDir(sWorkDir);
break;
Expand All @@ -40,5 +40,6 @@ int main(int argc, const char* argv[]) {

ArgumentProcessorCtf01dMain *pMain = new ArgumentProcessorCtf01dMain();
WsjcppArguments prog(argc, argv, pMain);
return prog.exec();
int nRet = prog.exec();
return nRet;
}

0 comments on commit 188f478

Please sign in to comment.