mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 04:14:04 +02:00
Convert addons to non-legacy (#36)
This commit is contained in:
3
nzbget/CHANGELOG.md
Normal file
3
nzbget/CHANGELOG.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## 0.2.0
|
||||
|
||||
- not a legacy addon anymore
|
||||
@@ -2,6 +2,21 @@ ARG BUILD_FROM
|
||||
# hadolint ignore=DL3006
|
||||
FROM $BUILD_FROM
|
||||
|
||||
RUN apk add --no-cache \
|
||||
jq=1.6-r0 \
|
||||
&& curl -J -L -o /tmp/bashio.tar.gz \
|
||||
"https://github.com/hassio-addons/bashio/archive/v0.8.0.tar.gz" \
|
||||
&& mkdir /tmp/bashio \
|
||||
&& tar zxvf \
|
||||
/tmp/bashio.tar.gz \
|
||||
--strip 1 -C /tmp/bashio \
|
||||
\
|
||||
&& mv /tmp/bashio/lib /usr/lib/bashio \
|
||||
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
||||
\
|
||||
&& rm -f -r \
|
||||
/tmp/*
|
||||
|
||||
# use /data instead of /config for hass.io environment
|
||||
RUN sed -i "s|/config|/config/nzbget|g" /etc/services.d/nzbget/run \
|
||||
&& sed -i "s|/config|/config/nzbget|g" /etc/cont-init.d/30-config \
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"build_from_template": {
|
||||
"image": "linuxserver/nzbget",
|
||||
"version": "v21.0-ls16"
|
||||
"version": "v21.0-ls41"
|
||||
},
|
||||
"build_from": {
|
||||
"armhf": "linuxserver/nzbget:arm32v7-v21.0-ls16",
|
||||
"aarch64": "linuxserver/nzbget:arm64v8-v21.0-ls16",
|
||||
"amd64": "linuxserver/nzbget:amd64-v21.0-ls16"
|
||||
"armhf": "linuxserver/nzbget:arm32v7-v21.0-ls41",
|
||||
"aarch64": "linuxserver/nzbget:arm64v8-v21.0-ls41",
|
||||
"amd64": "linuxserver/nzbget:amd64-v21.0-ls41"
|
||||
},
|
||||
"squash": false,
|
||||
"args": {}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "nzbget",
|
||||
"version": "0.1.2",
|
||||
"version": "0.2.0",
|
||||
"slug": "nzbget",
|
||||
"legacy": true,
|
||||
"legacy": false,
|
||||
"maintenance": {
|
||||
"github_release": "https://github.com/linuxserver/docker-nzbget",
|
||||
"version_regex": "v(\\d+\\.\\d+\\.?\\d*)-(ls\\d+)"
|
||||
|
||||
5
nzbget/root/etc/cont-init.d/00-ha-env
Normal file
5
nzbget/root/etc/cont-init.d/00-ha-env
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
for k in $(bashio::jq "${__BASHIO_ADDON_CONFIG}" 'keys | .[]'); do
|
||||
printf "$(bashio::config $k)" > /var/run/s6/container_environment/$k
|
||||
done
|
||||
Reference in New Issue
Block a user