Skip to content

Commit

Permalink
Syntax error in run-minidlna.sh #12 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
GioF71 authored Jan 16, 2024
1 parent eb0519c commit 1b739c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ Just be careful to use the tag you have built.

Date|Major Changes
:---|:---
2024-01-16|Fixed run script, see [#12](https://github.com/GioF71/minidlna-docker/issues/12)
2023-12-20|Allow docker user mode, see [#10](https://github.com/GioF71/minidlna-docker/issues/10)
2023-09-13|Switch to debian stable, see [#8](https://github.com/GioF71/minidlna-docker/issues/8)
2023-09-13|Add support to notify interval, see [#6](https://github.com/GioF71/minidlna-docker/issues/6)
Expand Down
8 changes: 6 additions & 2 deletions app/bin/run-minidlna.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fi

USE_USER_MODE=N
if [[ $current_user_id -eq 0 ]]; then
if [ -n "${PUID}" ] || [ [ "${USER_MODE^^}" = "Y" ] || [ "${USER_MODE^^}" = "YES" ] ]; then
if [[ -n "${PUID}" ]] || ([[ "${USER_MODE^^}" == "Y" ]] || [[ "${USER_MODE^^}" = "YES" ]]); then
USE_USER_MODE=Y
if [ -z "${PUID}" ]; then
PUID=$DEFAULT_UID;
Expand Down Expand Up @@ -132,10 +132,14 @@ if [[ $current_user_id -eq 0 ]]; then
echo "user $USER_NAME already exists."
fi
fi
echo "Setting user permissions on /log ..."
chown -R $USER_NAME:$GROUP_NAME /log
echo "Setting user permissions on /db ..."
chown -R $USER_NAME:$GROUP_NAME /db
echo "User permissions set."
fi

if [ -n ${MINIDLNA_FORCE_SORT_CRITERIA} ]; then
#echo "force_sort_criteria=+upnp:class,+dc:date,+upnp:album,+upnp:originalTrackNumber,+dc:title" >> $CONFIG_FILE
echo "force_sort_criteria=$MINIDLNA_FORCE_SORT_CRITERIA" >> $CONFIG_FILE
fi

Expand Down

0 comments on commit 1b739c7

Please sign in to comment.