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