mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 18:01:03 +01:00
addition of beets
This commit is contained in:
10
beets/Dockerfile
Normal file
10
beets/Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
ARG BUILD_FROM
|
||||
FROM $BUILD_FROM
|
||||
|
||||
# copy local files
|
||||
COPY root/ /
|
||||
|
||||
# MOFIFY DATA PATH
|
||||
RUN sed -i "s|config|data|g" /etc/services.d/beets/run
|
||||
|
||||
VOLUME [ "/data" ]
|
||||
27
beets/README.md
Normal file
27
beets/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Hassio Add-ons by alexbelgium: doublecommander
|
||||
|
||||
## 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
|
||||
14
beets/build.json
Normal file
14
beets/build.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"build_from_template": {
|
||||
"image": "linuxserver/beets",
|
||||
"version": "latest"
|
||||
},
|
||||
"build_from": {
|
||||
"armv7": "linuxserver/beets:arm32v7-latest",
|
||||
"armhf": "linuxserver/beets:arm32v7-latest",
|
||||
"aarch64": "linuxserver/beets:arm64v8-latest",
|
||||
"amd64": "linuxserver/beets:amd64-latest"
|
||||
},
|
||||
"squash": false,
|
||||
"args": {}
|
||||
}
|
||||
@@ -1 +1,45 @@
|
||||
|
||||
{
|
||||
"name": "Beets",
|
||||
"version": "1.0",
|
||||
"slug": "beets",
|
||||
"description": "Beets is a music library manager and not, for the most part, a music player.",
|
||||
"url": "https://github.com/alexbelgium/hassio-addons/doublecommander",
|
||||
"startup": "services",
|
||||
"arch": [
|
||||
"aarch64",
|
||||
"amd64",
|
||||
"armv7",
|
||||
"armhf"
|
||||
],
|
||||
"ports": {
|
||||
"8337/tcp": 8337
|
||||
},
|
||||
"map": [
|
||||
"backup:rw",
|
||||
"config:rw",
|
||||
"share:rw",
|
||||
"media:rw",
|
||||
"ssl"
|
||||
],
|
||||
"webui": "http://[HOST]:[PORT:8337]",
|
||||
"boot": "auto",
|
||||
"privileged": ["SYS_ADMIN", "DAC_READ_SEARCH"],
|
||||
"full_access": true,
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
BIN
beets/icon.png
Normal file
BIN
beets/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.7 KiB |
BIN
beets/logo.png
Normal file
BIN
beets/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.7 KiB |
43
beets/root/etc/cont-init.d/50-mounts
Normal file
43
beets/root/etc/cont-init.d/50-mounts
Normal file
@@ -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
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Double commander",
|
||||
"version": "1.2",
|
||||
"version": "1.3",
|
||||
"slug": "doublecommander",
|
||||
"description": "Double Commander is a free cross platform open source file manager with two panels side by side.",
|
||||
"url": "https://github.com/alexbelgium/hassio-addons/doublecommander",
|
||||
@@ -29,6 +29,21 @@
|
||||
"PUID": "0",
|
||||
"PGID": "0"
|
||||
},
|
||||
"options": {},
|
||||
"schema": {}
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user