mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 09:05:55 +02:00
First version https://github.com/alexbelgium/hassio-addons/issues/756
This commit is contained in:
16
sponsorblockcast/rootfs/etc/cont-init.d/99-run.sh
Normal file
16
sponsorblockcast/rootfs/etc/cont-init.d/99-run.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
# make directory
|
||||
mkdir -p /tmp/sponsorblockcast
|
||||
|
||||
# Export options as env variables
|
||||
for var in SBCPOLLINTERVAL SBCSCANINTERVAL SBCCATEGORIES SBCYOUTUBEAPIKEY; do
|
||||
if bashio::config.has_value "$var"; then
|
||||
export "$var"="$(bashio::config "$var")"
|
||||
fi
|
||||
done
|
||||
|
||||
# Starting app
|
||||
bashio::log.info "Starting app"
|
||||
/./usr/bin/sponsorblockcast &>/proc/1/fd/1
|
||||
Reference in New Issue
Block a user