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