diff --git a/doublecommander/Dockerfile b/doublecommander/Dockerfile index 142183db6..32c48bb3c 100644 --- a/doublecommander/Dockerfile +++ b/doublecommander/Dockerfile @@ -1,6 +1,9 @@ ARG BUILD_FROM FROM $BUILD_FROM +# copy local files +COPY root/ / + # MOFIFY DATA PATH RUN sed -i "s|config|data|g" /defaults/autostart diff --git a/doublecommander/root/etc/cont-init.d/50-mounts b/doublecommander/root/etc/cont-init.d/50-mounts new file mode 100644 index 000000000..e7fb49d35 --- /dev/null +++ b/doublecommander/root/etc/cont-init.d/50-mounts @@ -0,0 +1,43 @@ +#!/usr/bin/with-contenv bashio +bashio::log.info 'Mounting external hdd...' + +# Mount local Share if configured and if Protection Mode is active +if bashio::config.has_value 'localdisks'; then + MOREDISKS=$(bashio::config 'localdisks') + bashio::log.info "Local Disks mounting.. ${MOREDISKS}" && \ + for disk in $MOREDISKS + do + bashio::log.info "Mount ${disk}" + mkdir -p /share/$disk && \ + if [ ! -d /share/$disk ]; then + echo "Creating /share/$disk" + mkdir -p /share/$disk + chown -R abc:abc /share/$disk + fi + mount /dev/$disk /share/$disk && \ + bashio::log.info "Success!" + done || \ + bashio::log.warning "Protection mode is ON. Unable to mount local drives!" +fi + +# Mount CIFS Share if configured and if Protection Mode is active +if bashio::config.has_value 'networkdisks'; then + MOREDISKS=$(bashio::config 'networkdisks') + CIFS_USERNAME=$(bashio::config 'cifsusername') + CIFS_PASSWORD=$(bashio::config 'cifspassword') + bashio::log.info "Network Disks mounting.. ${MOREDISKS}" && \ + for disk in $MOREDISKS + do + bashio::log.info "Mount ${disk}" + mkdir -p /share/storagecifs && \ + if [ ! -d /storage/storagecifs ]; then + echo "Creating /storage/storagecifs" + mkdir -p /storage/storagecifs + chown -R abc:abc /storage/storagecifs + fi + + mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD $disk /storage/storagecifs && \ + bashio::log.info "Success!" + done || \ + bashio::log.warning "Protection mode is ON. Unable to mount external drives!" +fi diff --git a/emby/config.json b/emby/config.json index 2ad730cd3..fce795de5 100644 --- a/emby/config.json +++ b/emby/config.json @@ -1,5 +1,5 @@ { - "name": "Emby beta with smb and hdd", + "name": "Emby beta NAS", "version": "1.5", "slug": "emby_nas", "legacy": false, diff --git a/radarr/CHANGELOG.md b/radarr/CHANGELOG.md new file mode 100644 index 000000000..17608c7cc --- /dev/null +++ b/radarr/CHANGELOG.md @@ -0,0 +1,27 @@ +## 0.6.1 + + - Mount /media folder + +## 0.6.0 + + - Update radarr to 0.2.0.1504 (linuxserver/radarr:v0.2.0.1504-ls68) + +## 0.5.0 + + - not a legacy addon anymore + + ## 0.4.0 + + - Update radarr to 0.2.0.1480 (linuxserver/radarr:v0.2.0.1480-ls51) + +## 0.3.2 + + - set snapshot_exclude for logs and MediaCover + +## 0.3.0 + + - Update radarr to 0.2.0.1450 (linuxserver/radarr:v0.2.0.1450-ls46) + +## 0.2.0 + + - Update radarr to 0.2.0.1358 (linuxserver/radarr:v0.2.0.1358-ls22) \ No newline at end of file diff --git a/radarr/Dockerfile b/radarr/Dockerfile new file mode 100644 index 000000000..f7425a738 --- /dev/null +++ b/radarr/Dockerfile @@ -0,0 +1,21 @@ +ARG BUILD_FROM +# hadolint ignore=DL3006 +FROM $BUILD_FROM + +RUN curl -J -L -o /tmp/bashio.tar.gz \ + "https://github.com/hassio-addons/bashio/archive/v0.7.1.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 -fr /tmp/* + +# use /data instead of /config for hass.io environment +RUN sed -i "s|/config|/config/radarr|g" /etc/services.d/radarr/run \ + && sed -i "s|/config|/config/radarr|g" /etc/cont-init.d/30-config + +# copy local files +COPY root/ / diff --git a/radarr/README.md b/radarr/README.md new file mode 100644 index 000000000..d30b5c586 --- /dev/null +++ b/radarr/README.md @@ -0,0 +1,27 @@ +# Hassio Add-ons by petersendev: Radarr + +## About + +[Radarr](https://github.com/Radarr/Radarr) - A fork of Sonarr to work with movies à la Couchpotato. + +This addon is based on the [docker image](https://github.com/linuxserver/docker-radarr) from linuxserver.io. + +## Installation + +The installation of this add-on is pretty straightforward and not different in +comparison to installing any other Hass.io add-on. + +1. [Add my Hass.io add-ons repository][repository] to your Hass.io instance. +1. Install this add-on. +1. Click the `Save` button to store your configuration. +1. Start the add-on. +1. Check the logs of the add-on to see if everything went well. +1. Carefully configure the add-on to your preferences, see the official documentation for for that. + + +## Configuration + +Webui can be found at `:7878`. + + +[repository]: https://github.com/petersendev/hassio-addons \ No newline at end of file diff --git a/radarr/build.json b/radarr/build.json new file mode 100644 index 000000000..63c17fa3b --- /dev/null +++ b/radarr/build.json @@ -0,0 +1,14 @@ +{ + "build_from_template": { + "image": "linuxserver/radarr", + "version": "v0.2.0.1504-ls68" + }, + "build_from": { + "armhf": "linuxserver/radarr:arm32v7-v0.2.0.1504-ls68", + "armv7": "linuxserver/radarr:arm32v7-v0.2.0.1504-ls68", + "aarch64": "linuxserver/radarr:arm64v8-v0.2.0.1504-ls68", + "amd64": "linuxserver/radarr:amd64-v0.2.0.1504-ls68" + }, + "squash": false, + "args": {} +} diff --git a/radarr/config.json b/radarr/config.json new file mode 100644 index 000000000..730022212 --- /dev/null +++ b/radarr/config.json @@ -0,0 +1,47 @@ +{ + "name": "radarr NAS", + "version": "0.6.1", + "slug": "radarr", + "legacy": false, + "maintenance": { + "github_release": "https://github.com/linuxserver/docker-radarr", + "version_regex": "v(\\d+\\.\\d+\\.\\d+\\.\\d+)-(ls\\d+)" + }, + "description": "A fork of Sonarr to work with movies à la Couchpotato", + "url": "https://github.com/alexbelgium/hassio-addons/tree/master/radarr#readme", + "startup": "services", + "arch": [ + "aarch64", + "amd64", + "armv7", + "armhf" + ], + "ports": { + "7878/tcp": 7878 + }, + "ports_description": { + "7878/tcp": "web interface" + }, + "map": [ + "config:rw", + "share:rw", + "media:rw", + "ssl" + ], + "webui": "http://[HOST]:[PORT:7878]", + "boot": "auto", + "options": { + "PUID": 1001, + "PGID": 1001 + }, + "schema": { + "PUID": "int", + "PGID": "int", + "TZ": "str?" + }, + "snapshot_exclude": [ + "**/Backups/*", + "**/logs/*", + "**/MediaCover/*" + ] +} diff --git a/radarr/icon.png b/radarr/icon.png new file mode 100644 index 000000000..5e143b52e Binary files /dev/null and b/radarr/icon.png differ diff --git a/radarr/logo.png b/radarr/logo.png new file mode 100644 index 000000000..5e143b52e Binary files /dev/null and b/radarr/logo.png differ diff --git a/radarr/root/etc/cont-init.d/00-ha-env b/radarr/root/etc/cont-init.d/00-ha-env new file mode 100644 index 000000000..3b3e69246 --- /dev/null +++ b/radarr/root/etc/cont-init.d/00-ha-env @@ -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 \ No newline at end of file diff --git a/radarr/root/etc/cont-init.d/20-folders b/radarr/root/etc/cont-init.d/20-folders new file mode 100644 index 000000000..9fcadd756 --- /dev/null +++ b/radarr/root/etc/cont-init.d/20-folders @@ -0,0 +1,19 @@ +#!/usr/bin/with-contenv bash + +if [ ! -d /share/storage/movies ]; then + echo "Creating /share/storage/movies" + mkdir -p /share/storage/movies + chown -R abc:abc /share/storage/movies +fi + +if [ ! -d /share/downloads ]; then + echo "Creating /share/downloads" + mkdir -p /share/downloads + chown -R abc:abc /share/downloads +fi + +if [ ! -d /config/radarr ]; then + echo "Creating /config/radarr" + mkdir -p /config/radarr + chown -R abc:abc /config/radarr +fi diff --git a/radarr/root/etc/cont-init.d/50-mounts b/radarr/root/etc/cont-init.d/50-mounts new file mode 100644 index 000000000..e7fb49d35 --- /dev/null +++ b/radarr/root/etc/cont-init.d/50-mounts @@ -0,0 +1,43 @@ +#!/usr/bin/with-contenv bashio +bashio::log.info 'Mounting external hdd...' + +# Mount local Share if configured and if Protection Mode is active +if bashio::config.has_value 'localdisks'; then + MOREDISKS=$(bashio::config 'localdisks') + bashio::log.info "Local Disks mounting.. ${MOREDISKS}" && \ + for disk in $MOREDISKS + do + bashio::log.info "Mount ${disk}" + mkdir -p /share/$disk && \ + if [ ! -d /share/$disk ]; then + echo "Creating /share/$disk" + mkdir -p /share/$disk + chown -R abc:abc /share/$disk + fi + mount /dev/$disk /share/$disk && \ + bashio::log.info "Success!" + done || \ + bashio::log.warning "Protection mode is ON. Unable to mount local drives!" +fi + +# Mount CIFS Share if configured and if Protection Mode is active +if bashio::config.has_value 'networkdisks'; then + MOREDISKS=$(bashio::config 'networkdisks') + CIFS_USERNAME=$(bashio::config 'cifsusername') + CIFS_PASSWORD=$(bashio::config 'cifspassword') + bashio::log.info "Network Disks mounting.. ${MOREDISKS}" && \ + for disk in $MOREDISKS + do + bashio::log.info "Mount ${disk}" + mkdir -p /share/storagecifs && \ + if [ ! -d /storage/storagecifs ]; then + echo "Creating /storage/storagecifs" + mkdir -p /storage/storagecifs + chown -R abc:abc /storage/storagecifs + fi + + mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD $disk /storage/storagecifs && \ + bashio::log.info "Success!" + done || \ + bashio::log.warning "Protection mode is ON. Unable to mount external drives!" +fi diff --git a/transmission/config.json b/transmission/config.json index f3f32b492..cf2ae9644 100644 --- a/transmission/config.json +++ b/transmission/config.json @@ -1,5 +1,5 @@ { - "name": "Transmission with NAS", + "name": "Transmission NAS", "version": "1.0", "slug": "transmission", "description": "The torrent client for Hass.io with OpenVPN support",