Skip to content

Commit

Permalink
Merge pull request #909 from daredoes/custom-config-var
Browse files Browse the repository at this point in the history
Add support for env var for IRIS_CONFIG_LOCATION
  • Loading branch information
jaedb authored Aug 12, 2023
2 parents 1051c8e + 4a3a774 commit dd300af
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 dd300af

Please sign in to comment.