From 4a3a77419f5998e72e2022c49a6ce47d7587ba35 Mon Sep 17 00:00:00 2001 From: Daniel Evans Date: Thu, 1 Jun 2023 19:22:31 -0700 Subject: [PATCH] Add support for env var for IRIS_CONFIG_LOCATION --- mopidy_iris/system.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mopidy_iris/system.sh b/mopidy_iris/system.sh index 6e8dee109..bd46b5693 100755 --- a/mopidy_iris/system.sh +++ b/mopidy_iris/system.sh @@ -28,7 +28,10 @@ elif [[ $1 = "restart" ]]; then elif [[ $1 = "local_scan" ]]; then START=$(date +%s) if $IS_CONTAINER; then - SCAN=$(mopidy --config /config/mopidy.conf local scan) + if [ -n "$IRIS_CONFIG_LOCATION" ]; then + SCAN=$(mopidy --config $IRIS_CONFIG_LOCATION local scan) + else + SCAN=$(mopidy --config /config/mopidy.conf local scan) else SCAN=$(sudo mopidyctl local scan) fi