Refactor database and service start commands

This commit is contained in:
Andras Bacsai
2024-02-05 20:57:40 +01:00
parent 1326fcb345
commit fd2a533057
6 changed files with 15 additions and 6 deletions

View File

@@ -128,7 +128,8 @@ class StartPostgresql
$this->commands[] = "echo 'Pulling {$database->image} image.'";
$this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml pull";
$this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml up -d";
$this->commands[] = "echo '{$database->name} started.'";
$database_name = addslashes($database->name);
$this->commands[] = "echo '{$database_name} started.'";
return remote_process($this->commands, $database->destination->server, callEventOnFinish: 'DatabaseStatusChanged');
}