mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
13 lines
454 B
Bash
13 lines
454 B
Bash
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
|
|
CONFIG_LOCATION=$(bashio::config 'CONFIG_LOCATION')
|
|
bashio::log.info "Config stored in $CONFIG_LOCATION"
|
|
|
|
mkdir -p "$CONFIG_LOCATION"
|
|
chown -R abc:abc "$CONFIG_LOCATION"
|
|
|
|
for file in $(grep -Esril "/config/addons_config/overseerr" /etc/logrotate.d /defaults /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d); do
|
|
sed -i "s=/config/addons_config/overseerr=$CONFIG_LOCATION=g" "$file"
|
|
done
|