From 52040d690fd7b5424130e03029342942c321dc47 Mon Sep 17 00:00:00 2001 From: Arne Petersen Date: Fri, 31 May 2019 10:31:34 +0200 Subject: [PATCH] Legacy (#5) * use legacy for linuxserver.io based addons PUID, GUID, TZ options will transfer to environment variables with legacy flag --- .gitattributes | 3 +++ hydra2/config.json | 16 ++++++++++------ nzbget/config.json | 16 ++++++++++------ 3 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..0ab351199 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +* text eol=lf +*.png binary +*.jpg binary \ No newline at end of file diff --git a/hydra2/config.json b/hydra2/config.json index 825119ead..e021cdebc 100644 --- a/hydra2/config.json +++ b/hydra2/config.json @@ -1,7 +1,8 @@ { "name": "hydra2", - "version": "0.0.1", + "version": "0.1.0", "slug": "hydra2", + "legacy": true, "description": "Meta search application for NZB indexers", "url": "https://github.com/petersendev/hassio-addons/hydra2", "startup": "services", @@ -23,11 +24,14 @@ ], "webui": "http://[HOST]:[PORT:5076]", "boot": "auto", - "environment": { - "PUID": "1000", - "PGID": "1000" + "options": { + "PUID": 1001, + "PGID": 1001 + }, + "schema": { + "PUID": "int", + "PGID": "int", + "TZ": "str?" }, - "options": {}, - "schema": {}, "image": "petersendev/hassio-hydra2-{arch}" } \ No newline at end of file diff --git a/nzbget/config.json b/nzbget/config.json index 2638d4a59..e3838fe66 100644 --- a/nzbget/config.json +++ b/nzbget/config.json @@ -1,7 +1,8 @@ { "name": "nzbget", - "version": "0.0.4", + "version": "0.1.0", "slug": "nzbget", + "legacy": true, "description": "Usenet downloader", "url": "https://github.com/petersendev/hassio-addons/nzbget", "startup": "services", @@ -23,11 +24,14 @@ ], "webui": "http://[HOST]:[PORT:6789]", "boot": "auto", - "environment": { - "PUID": "1000", - "PGID": "1000" + "options": { + "PUID": 1001, + "PGID": 1001 + }, + "schema": { + "PUID": "int", + "PGID": "int", + "TZ": "str?" }, - "options": {}, - "schema": {}, "image": "petersendev/hassio-nzbget-{arch}" } \ No newline at end of file