Files
hassio-addons/readarr/rootfs/etc/cont-init.d/00-config_location.sh
Alexandre 42bef66f08 Revert "chmod +x scripts"
This reverts commit 3351e5b29c.
2022-06-15 21:03:13 +02:00

12 lines
374 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"
sed -i "s|/config/readarr|$CONFIG_LOCATION|g" /etc/services.d/readarr/run
sed -i "s|/config/readarr|$CONFIG_LOCATION|g" /etc/cont-init.d/30-config