port change fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
FROM debian
|
||||
|
||||
RUN apt-get update && apt-get install -y minidlna vim
|
||||
RUN apt-get update && apt-get install -y minidlna vim net-tools
|
||||
|
||||
COPY files/start.sh /opt/start.sh
|
||||
RUN chmod 755 /opt/start.sh
|
||||
|
||||
@@ -11,8 +11,8 @@ then
|
||||
echo "media_dir=$folder" >> /etc/minidlna.conf
|
||||
done
|
||||
|
||||
[ -z $PORT ] && { PORT=8200; }
|
||||
sed -i "s@port.*00@port $PORT@g" /etc/minidlna.conf
|
||||
[ -z $PORT ] && { PORT=8201; }
|
||||
sed -i "s@port=.*00@port=$PORT@g" /etc/minidlna.conf
|
||||
|
||||
date > /etc/minidlna.configured
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user