rename services to aio_services_v1

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2022-12-30 23:49:54 +01:00
parent 29197deb69
commit f98528eac5
4 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
jq -c . ./php/containers.json > /tmp/containers.json jq -c . ./php/containers.json > /tmp/containers.json
sed -i 's|aio_services_v1|services|g' /tmp/containers.json
sed -i 's|","destination":"|:|g' /tmp/containers.json sed -i 's|","destination":"|:|g' /tmp/containers.json
sed -i 's|","writeable":false|:ro"|g' /tmp/containers.json sed -i 's|","writeable":false|:ro"|g' /tmp/containers.json
sed -i 's|","writeable":true|:rw"|g' /tmp/containers.json sed -i 's|","writeable":true|:rw"|g' /tmp/containers.json

View file

@ -2,9 +2,9 @@
"type": "object", "type": "object",
"description": "AIO containers definition schema", "description": "AIO containers definition schema",
"minProperties": 1, "minProperties": 1,
"required": ["services"], "required": ["aio_services_v1"],
"properties": { "properties": {
"services": { "aio_services_v1": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",

View file

@ -1,5 +1,5 @@
{ {
"services": [ "aio_services_v1": [
{ {
"container_name": "nextcloud-aio-apache", "container_name": "nextcloud-aio-apache",
"depends_on": [ "depends_on": [

View file

@ -48,7 +48,7 @@ class ContainerDefinitionFetcher
$data = json_decode(file_get_contents(__DIR__ . '/../containers.json'), true); $data = json_decode(file_get_contents(__DIR__ . '/../containers.json'), true);
$containers = []; $containers = [];
foreach ($data['services'] as $entry) { foreach ($data['aio_services_v1'] as $entry) {
if ($entry['container_name'] === 'nextcloud-aio-clamav') { if ($entry['container_name'] === 'nextcloud-aio-clamav') {
if (!$this->configurationManager->isClamavEnabled()) { if (!$this->configurationManager->isClamavEnabled()) {
continue; continue;