mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-12-26 08:41:07 +08:00
rename services to aio_services_v1
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
29197deb69
commit
f98528eac5
4 changed files with 5 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
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|","writeable":false|:ro"|g' /tmp/containers.json
|
||||
sed -i 's|","writeable":true|:rw"|g' /tmp/containers.json
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
"type": "object",
|
||||
"description": "AIO containers definition schema",
|
||||
"minProperties": 1,
|
||||
"required": ["services"],
|
||||
"required": ["aio_services_v1"],
|
||||
"properties": {
|
||||
"services": {
|
||||
"aio_services_v1": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"services": [
|
||||
"aio_services_v1": [
|
||||
{
|
||||
"container_name": "nextcloud-aio-apache",
|
||||
"depends_on": [
|
||||
|
|
|
@ -48,7 +48,7 @@ class ContainerDefinitionFetcher
|
|||
$data = json_decode(file_get_contents(__DIR__ . '/../containers.json'), true);
|
||||
|
||||
$containers = [];
|
||||
foreach ($data['services'] as $entry) {
|
||||
foreach ($data['aio_services_v1'] as $entry) {
|
||||
if ($entry['container_name'] === 'nextcloud-aio-clamav') {
|
||||
if (!$this->configurationManager->isClamavEnabled()) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue