mirror of
https://github.com/hassio-addons/addon-overseerr.git
synced 2025-05-04 11:31:33 +00:00
Merge d67ad83256
into 831cbeed79
This commit is contained in:
commit
3d7c9f4111
6 changed files with 26 additions and 0 deletions
|
@ -15,5 +15,7 @@ map:
|
|||
- addon_config:rw
|
||||
- share:rw
|
||||
- media:rw
|
||||
discovery:
|
||||
- overseerr
|
||||
ports:
|
||||
5055/tcp: 5055
|
||||
|
|
22
overseerr/rootfs/etc/s6-overlay/s6-rc.d/discovery/run
Executable file
22
overseerr/rootfs/etc/s6-overlay/s6-rc.d/discovery/run
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/command/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-on: Overseerr
|
||||
# Sends discovery information to Home Assistant.
|
||||
# ==============================================================================
|
||||
declare config
|
||||
|
||||
# Wait for Overseerr to become available
|
||||
bashio::net.wait_for 5055 127.0.0.1 300
|
||||
|
||||
config=$(\
|
||||
bashio::var.json \
|
||||
host "127.0.0.1" \
|
||||
port "^5055" \
|
||||
)
|
||||
|
||||
if bashio::discovery "overseerr" "${config}" > /dev/null; then
|
||||
bashio::log.info "Successfully send discovery information to Home Assistant."
|
||||
else
|
||||
bashio::log.error "Discovery message to Home Assistant failed!"
|
||||
fi
|
1
overseerr/rootfs/etc/s6-overlay/s6-rc.d/discovery/type
Normal file
1
overseerr/rootfs/etc/s6-overlay/s6-rc.d/discovery/type
Normal file
|
@ -0,0 +1 @@
|
|||
oneshot
|
1
overseerr/rootfs/etc/s6-overlay/s6-rc.d/discovery/up
Normal file
1
overseerr/rootfs/etc/s6-overlay/s6-rc.d/discovery/up
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/s6-overlay/s6-rc.d/discovery/run
|
Loading…
Add table
Add a link
Reference in a new issue