Skip to content

Commit

Permalink
Add support for env var for IRIS_CONFIG_LOCATION
Browse files Browse the repository at this point in the history
  • Loading branch information
daredoes committed Jun 2, 2023
1 parent 5ef872a commit 4a3a774
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mopidy_iris/system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a3a774

Please sign in to comment.