mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-12-27 01:02:10 +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
|
#!/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
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"services": [
|
"aio_services_v1": [
|
||||||
{
|
{
|
||||||
"container_name": "nextcloud-aio-apache",
|
"container_name": "nextcloud-aio-apache",
|
||||||
"depends_on": [
|
"depends_on": [
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue