Alexander A. Klimov 05c135f2f7 entrypoint/: let Icinga Web render its config files, not a Go lib
It knows best what they have to look like to be interpreted correctly.
Especially the proper quoting of special characters is important.
2024-04-19 13:15:26 +02:00

17 lines
380 B
PHP

<?php
// Icinga Web 2 Docker image | (c) 2024 Icinga GmbH | GPLv2+
namespace Icinga\Module\Dockerentrypoint\Clicommands;
use Icinga\Application\Config;
use Icinga\Cli\Command;
use Icinga\Util\Json;
class ConfigCommand extends Command
{
public function renderAction(): void
{
echo Config::fromArray(Json::decode(file_get_contents('php://stdin'), true));
}
}