fix cleanup
This commit is contained in:
parent
6b1bea2195
commit
80165978d3
@ -2666,7 +2666,7 @@ export async function cleanupPlausibleLogs(request: FastifyRequest<OnlyId>, repl
|
|||||||
if (destinationDockerId) {
|
if (destinationDockerId) {
|
||||||
await executeDockerCmd({
|
await executeDockerCmd({
|
||||||
dockerId: destinationDocker.id,
|
dockerId: destinationDocker.id,
|
||||||
command: `docker exec ${id}-clickhouse /usr/bin/clickhouse-client -q "SELECT name FROM system.tables WHERE name LIKE '%log%';" | xargs -I{} /usr/bin/clickhouse-client -q "TRUNCATE TABLE system.{};"`
|
command: `docker exec ${id}-clickhouse sh -c "/usr/bin/clickhouse-client -q \"SELECT name FROM system.tables WHERE name LIKE '%log%';\"| xargs -I{} /usr/bin/clickhouse-client -q \"TRUNCATE TABLE system.{};\""`
|
||||||
})
|
})
|
||||||
return await reply.code(201).send()
|
return await reply.code(201).send()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user