commit
884524c448
@ -77,11 +77,11 @@ export async function startService(request: FastifyRequest<ServiceStartStop>, fa
|
|||||||
let volumes = new Set()
|
let volumes = new Set()
|
||||||
if (arm && template.services[s]?.volumesArm?.length > 0) {
|
if (arm && template.services[s]?.volumesArm?.length > 0) {
|
||||||
template.services[s].volumesArm.forEach(v => volumes.add(v))
|
template.services[s].volumesArm.forEach(v => volumes.add(v))
|
||||||
|
} else {
|
||||||
|
if (template.services[s]?.volumes?.length > 0) {
|
||||||
|
template.services[s].volumes.forEach(v => volumes.add(v))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!arm && template.services[s]?.volumes?.length > 0) {
|
|
||||||
template.services[s].volumes.forEach(v => volumes.add(v))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Workaround: old plausible analytics service wrong volume id name
|
// Workaround: old plausible analytics service wrong volume id name
|
||||||
if (service.type === 'plausibleanalytics' && service.plausibleAnalytics?.id) {
|
if (service.type === 'plausibleanalytics' && service.plausibleAnalytics?.id) {
|
||||||
let temp = Array.from(volumes)
|
let temp = Array.from(volumes)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user