forked from a-marcel/hassio-addon-owntone
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
26 lines (21 loc) · 1.36 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM linuxserver/daapd:latest
ARG BUILD_ARCH
RUN apk add --no-cache jq
RUN sed -i -e s#"ipv6 = yes"#"ipv6 = no"#g /etc/owntone.conf.orig \
&& sed -i s#/srv/music#/share/owntone/music#g /etc/owntone.conf.orig \
&& sed -i s#/var/cache/owntone/songs3.db#/share/owntone/dbase_and_logs/songs3.db#g /etc/owntone.conf.orig \
&& sed -i s#/var/cache/owntone/cache.db#/share/owntone/dbase_and_logs/cache.db#g /etc/owntone.conf.orig \
&& sed -i s#/var/log/owntone.log#/share/owntone/dbase_and_logs/owntone.log#g /etc/owntone.conf.orig \
&& sed -i "/websocket_port\ =/ s/# *//" /etc/owntone.conf.orig \
&& sed -i "/trusted_networks\ =/ s/# *//" /etc/owntone.conf.orig \
&& sed -i "/pipe_autostart\ =/ s/# *//" /etc/owntone.conf.orig \
&& sed -i "/airplay_shared/ s/# *//" /etc/owntone.conf.orig \
&& sed -i "/control_port\ =/ s/#/ /" /etc/owntone.conf.orig \
&& sed -i "/timing_port\ =/ s/#/ /" /etc/owntone.conf.orig \
&& sed -i "/timing_port/{N;s/\n#/\n/}" /etc/owntone.conf.orig \
&& sed -i "s/\(control_port =\).*/\1 3690/" /etc/owntone.conf.orig \
&& sed -i "s/\(timing_port =\).*/\1 3691/" /etc/owntone.conf.orig \
&& sed -i "/type\ =/ s/#/ /" /etc/owntone.conf.orig \
&& sed -i 's/\(type =\).*/\1 "pulseaudio"/' /etc/owntone.conf.orig
ADD 90-homeassistant /etc/cont-init.d/90-homeassistant
RUN chmod +x /etc/cont-init.d/90-homeassistant