mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-22 08:41:50 +02:00
update
This commit is contained in:
@@ -1,4 +0,0 @@
|
|||||||
## 0.8.2-1-ls41
|
|
||||||
- Update to latest version from linuxserver/docker-doublecommander
|
|
||||||
|
|
||||||
- Enables PUID/GUID options
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
ARG BUILD_FROM
|
|
||||||
ARG BUILD_VERSION
|
|
||||||
|
|
||||||
FROM ${BUILD_FROM}${BUILD_VERSION}
|
|
||||||
|
|
||||||
# Install bashio
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -y --no-install-recommends \
|
|
||||||
jq \
|
|
||||||
&& 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/* \
|
|
||||||
/var/{cache,log}/* \
|
|
||||||
/var/lib/apt/lists/* \
|
|
||||||
# Allow UID and GID setting
|
|
||||||
&& sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
|
|
||||||
&& sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \
|
|
||||||
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser
|
|
||||||
|
|
||||||
# copy local files
|
|
||||||
COPY root/ /
|
|
||||||
|
|
||||||
# MOFIFY DATA PATH
|
|
||||||
RUN sed -i "s|config|data|g" /defaults/autostart
|
|
||||||
|
|
||||||
VOLUME [ "/data" ]
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
# Home assistant add-on: doublecommander
|
|
||||||
![Supports aarch64 Architecture][aarch64-shield] ![Supports amd64 Architecture][amd64-shield] ![Supports armhf Architecture][armhf-shield] ![Supports armv7 Architecture][armv7-shield]
|
|
||||||
|
|
||||||
## About
|
|
||||||
|
|
||||||
Double Commander is a free cross platform open source file manager with two panels side by side. It is inspired by Total Commander and features some new ideas.
|
|
||||||
|
|
||||||
This addon is based on the [docker image](https://github.com/linuxserver/docker-doublecommander) 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 `<your-ip>:3000`.
|
|
||||||
|
|
||||||
|
|
||||||
[repository]: https://github.com/alexbelgium/hassio-addons
|
|
||||||
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
|
|
||||||
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
|
|
||||||
[armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg
|
|
||||||
[armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"build_from": {
|
|
||||||
"armv7": "linuxserver/doublecommander:arm32v7-",
|
|
||||||
"armhf": "linuxserver/doublecommander:arm32v7-",
|
|
||||||
"aarch64": "linuxserver/doublecommander:arm64v8-",
|
|
||||||
"amd64": "linuxserver/doublecommander:amd64-"
|
|
||||||
},
|
|
||||||
"squash": false,
|
|
||||||
"args": {}
|
|
||||||
}
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Double commander",
|
|
||||||
"version": "0.8.2-1-ls41",
|
|
||||||
"slug": "doublecommander",
|
|
||||||
"description": "Double Commander is a free cross platform open source file manager with two panels side by side.",
|
|
||||||
"url": "https://hub.docker.com/r/linuxserver/doublecommander",
|
|
||||||
"startup": "services",
|
|
||||||
"arch": [
|
|
||||||
"aarch64",
|
|
||||||
"amd64",
|
|
||||||
"armv7",
|
|
||||||
"armhf"
|
|
||||||
],
|
|
||||||
"ports": {
|
|
||||||
"3000/tcp": 3000
|
|
||||||
},
|
|
||||||
"map": [
|
|
||||||
"backup:rw",
|
|
||||||
"config:rw",
|
|
||||||
"share:rw",
|
|
||||||
"media:rw",
|
|
||||||
"ssl"
|
|
||||||
],
|
|
||||||
"webui": "http://[HOST]:[PORT:3000]",
|
|
||||||
"boot": "auto",
|
|
||||||
"privileged": [
|
|
||||||
"SYS_ADMIN",
|
|
||||||
"DAC_READ_SEARCH"
|
|
||||||
],
|
|
||||||
"host_network": true,
|
|
||||||
"full_access": true,
|
|
||||||
"environment": {
|
|
||||||
"PUID": "0",
|
|
||||||
"PGID": "0"
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"PUID": 0,
|
|
||||||
"PGID": 0,
|
|
||||||
"localdisks": [
|
|
||||||
"sda1"
|
|
||||||
],
|
|
||||||
"networkdisks": "<//SERVER/SHARE>",
|
|
||||||
"cifsusername": "<username>",
|
|
||||||
"cifspassword": "<password>"
|
|
||||||
},
|
|
||||||
"schema": {
|
|
||||||
"PUID": "int",
|
|
||||||
"PGID": "int",
|
|
||||||
"TZ": "str?",
|
|
||||||
"localdisks": [
|
|
||||||
"str"
|
|
||||||
],
|
|
||||||
"networkdisks": "str",
|
|
||||||
"cifsusername": "str",
|
|
||||||
"cifspassword": "str"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 9.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 9.7 KiB |
1
filebrowser/CHANGELOG.md
Normal file
1
filebrowser/CHANGELOG.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
25
filebrowser/Dockerfile
Normal file
25
filebrowser/Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
ARG BUILD_VERSION
|
||||||
|
FROM hurlenko/filebrowser:$BUILD_VERSION
|
||||||
|
|
||||||
|
# Copy root filesystem
|
||||||
|
COPY rootfs /
|
||||||
|
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
curl \
|
||||||
|
jq \
|
||||||
|
&& 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/bashio.tar.gz\
|
||||||
|
\
|
||||||
|
&& mkdir -p -m 777 /config/filebrowser
|
||||||
|
|
||||||
|
VOLUME [ "/data" ]
|
||||||
|
|
||||||
|
CMD ["--root=/data", "--address=0.0.0.0", "--database=/config/filebrowser/filebrowser.db"]
|
||||||
48
filebrowser/README.md
Normal file
48
filebrowser/README.md
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
# Home assistant add-on: qBittorrent
|
||||||
|
![Supports aarch64 Architecture][aarch64-shield] ![Supports amd64 Architecture][amd64-shield] ![Supports armhf Architecture][armhf-shield] ![Supports armv7 Architecture][armv7-shield]
|
||||||
|
|
||||||
|
## About
|
||||||
|
|
||||||
|
Transmission is a bittorrent client.
|
||||||
|
This addon is based on the [docker image](https://github.com/linuxserver/qbittorrent) 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 <http://your-ip:8081>. The default username/password : described in the startup log. Configurations can be done through the app, except for the following options.
|
||||||
|
|
||||||
|
Network disk is mounted to /share/storagecifs
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
GUID: user
|
||||||
|
GPID: user
|
||||||
|
ssl: true/false
|
||||||
|
certfile: fullchain.pem #ssl certificate
|
||||||
|
keyfile: privkey.pem #sslkeyfile
|
||||||
|
whitelist: "localhost,192.168.0.0/16" # list ip subnets that won't need a password (optional)
|
||||||
|
Username: "admin" #username to access webui. Please change it as the default is admin for all installations.
|
||||||
|
customUI: selection from list # alternative webUI can be set here. Latest version set at each addon start.
|
||||||
|
SavePath: "/share/qbittorrent" # Define the download directory
|
||||||
|
networkdisks: "<//SERVER/SHARE>" # list of smbv2/3 servers to mount (optional)
|
||||||
|
cifsusername: "username" # smb username (optional)
|
||||||
|
cifspassword: "password" # smb password (optional)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Support
|
||||||
|
Create an issue on github, or ask on the [home assistant thread](https://community.home-assistant.io/t/home-assistant-addon-qbittorrent/279247)
|
||||||
|
|
||||||
|
[repository]: https://github.com/alexbelgium/hassio-addons
|
||||||
|
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
|
||||||
|
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
|
||||||
|
[armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg
|
||||||
|
[armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg
|
||||||
48
filebrowser/apparmor.txt
Normal file
48
filebrowser/apparmor.txt
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
#include <tunables/global>
|
||||||
|
|
||||||
|
profile db21ed7f_qbittorrent flags=(attach_disconnected,mediate_deleted) {
|
||||||
|
#include <abstractions/base>
|
||||||
|
|
||||||
|
capability,
|
||||||
|
file,
|
||||||
|
mount,
|
||||||
|
umount,
|
||||||
|
remount,
|
||||||
|
|
||||||
|
capability setgid,
|
||||||
|
capability setuid,
|
||||||
|
capability sys_admin,
|
||||||
|
capability dac_read_search,
|
||||||
|
# capability dac_override,
|
||||||
|
# capability sys_rawio,
|
||||||
|
|
||||||
|
# S6-Overlay
|
||||||
|
/bin/** ix,
|
||||||
|
/usr/bin/** ix,
|
||||||
|
/usr/lib/bashio/** ix,
|
||||||
|
/etc/s6/** rix,
|
||||||
|
/run/s6/** rix,
|
||||||
|
/etc/services.d/** rwix,
|
||||||
|
/etc/cont-init.d/** rwix,
|
||||||
|
/etc/cont-finish.d/** rwix,
|
||||||
|
/init rix,
|
||||||
|
/var/run/** mrwkl,
|
||||||
|
/var/run/ mrwkl,
|
||||||
|
/dev/i2c-1 mrwkl,
|
||||||
|
# Files required
|
||||||
|
/dev/sda1 mrwkl,
|
||||||
|
/dev/sdb1 mrwkl,
|
||||||
|
/dev/mmcblk0p1 mrwkl,
|
||||||
|
/dev/* mrwkl,
|
||||||
|
/tmp/** mrkwl,
|
||||||
|
|
||||||
|
# Data access
|
||||||
|
/data/** rw,
|
||||||
|
|
||||||
|
# suppress ptrace denials when using 'docker ps' or using 'ps' inside a container
|
||||||
|
ptrace (trace,read) peer=docker-default,
|
||||||
|
|
||||||
|
# docker daemon confinement requires explict allow rule for signal
|
||||||
|
signal (receive) set=(kill,term) peer=/usr/bin/docker,
|
||||||
|
|
||||||
|
}
|
||||||
39
filebrowser/config.json
Normal file
39
filebrowser/config.json
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"name": "Filebrowser",
|
||||||
|
"version": "2.11.0",
|
||||||
|
"slug": "filebrowser",
|
||||||
|
"description": "filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files",
|
||||||
|
"url": "https://github.com/hurlenko/filebrowser-docker",
|
||||||
|
"startup": "services",
|
||||||
|
"arch": [
|
||||||
|
"aarch64",
|
||||||
|
"amd64",
|
||||||
|
"armv7",
|
||||||
|
"armhf"
|
||||||
|
],
|
||||||
|
"ports": {
|
||||||
|
"8080/tcp": 8087
|
||||||
|
},
|
||||||
|
"ports_description": {
|
||||||
|
"8080/tcp": "Web UI port"
|
||||||
|
},
|
||||||
|
"apparmor": true,
|
||||||
|
"privileged": ["SYS_ADMIN", "DAC_READ_SEARCH"],
|
||||||
|
"map": [
|
||||||
|
"media:rw",
|
||||||
|
"config:rw",
|
||||||
|
"share:rw",
|
||||||
|
"ssl"
|
||||||
|
],
|
||||||
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:8080]",
|
||||||
|
"environment": {
|
||||||
|
"FB_BASEURL": "/filebrowser"
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
},
|
||||||
|
"schema": {
|
||||||
|
"networkdisks": "str?",
|
||||||
|
"cifsusername": "str?",
|
||||||
|
"cifspassword": "str?"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
filebrowser/icon.png
Normal file
BIN
filebrowser/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
BIN
filebrowser/logo.png
Normal file
BIN
filebrowser/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
@@ -1,8 +1,11 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
bashio::log.info 'Mounting external hdd...'
|
|
||||||
|
|
||||||
|
######################
|
||||||
|
# MOUNT LOCAL SHARES #
|
||||||
|
######################
|
||||||
# Mount local Share if configured and if Protection Mode is active
|
# Mount local Share if configured and if Protection Mode is active
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
bashio::log.info 'Mounting external hdd...'
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting.. ${MOREDISKS}" && \
|
bashio::log.info "Local Disks mounting.. ${MOREDISKS}" && \
|
||||||
for disk in $MOREDISKS
|
for disk in $MOREDISKS
|
||||||
@@ -20,8 +23,12 @@ if bashio::config.has_value 'localdisks'; then
|
|||||||
bashio::log.warning "Protection mode is ON. Unable to mount local drives!"
|
bashio::log.warning "Protection mode is ON. Unable to mount local drives!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
####################
|
||||||
|
# MOUNT SMB SHARES #
|
||||||
|
####################
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
if bashio::config.has_value 'networkdisks'; then
|
||||||
|
bashio::log.info 'Mounting smb share...'
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
CIFS_USERNAME=$(bashio::config 'cifsusername')
|
CIFS_USERNAME=$(bashio::config 'cifsusername')
|
||||||
CIFS_PASSWORD=$(bashio::config 'cifspassword')
|
CIFS_PASSWORD=$(bashio::config 'cifspassword')
|
||||||
@@ -29,15 +36,11 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
for disk in $MOREDISKS
|
for disk in $MOREDISKS
|
||||||
do
|
do
|
||||||
bashio::log.info "Mount ${disk}"
|
bashio::log.info "Mount ${disk}"
|
||||||
mkdir -p /share/storagecifs && \
|
echo "Creating /storage/storagecifs"
|
||||||
if [ ! -d /storage/storagecifs ]; then
|
mkdir -p /storage/storagecifs
|
||||||
echo "Creating /storage/storagecifs"
|
chown -R abc:abc /storage/storagecifs
|
||||||
mkdir -p /storage/storagecifs
|
mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD $disk /storage/storagecifs && \
|
||||||
chown -R abc:abc /storage/storagecifs
|
bashio::log.info "Success!"
|
||||||
fi
|
|
||||||
|
|
||||||
mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD $disk /storage/storagecifs && \
|
|
||||||
bashio::log.info "Success!"
|
|
||||||
done || \
|
done || \
|
||||||
bashio::log.warning "Protection mode is ON. Unable to mount external drives!"
|
bashio::log.warning "Protection mode is ON. Unable to mount external drives!"
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user