weewx-dwd: Fix unpack paths
This commit is contained in:
parent
7834117af7
commit
3b8eeca7da
1 changed files with 4 additions and 4 deletions
|
@ -53,9 +53,9 @@ RUN wget -nv -O icons-dwd.zip "https://www.dwd.de/DE/wetter/warnungen_aktuell/ob
|
||||||
unzip /tmp/warnicons-dwd.zip -d "${WEEWX_HOME}/public_html/dwd/warn_icons"
|
unzip /tmp/warnicons-dwd.zip -d "${WEEWX_HOME}/public_html/dwd/warn_icons"
|
||||||
|
|
||||||
# Adjust (some) file content and permissions
|
# Adjust (some) file content and permissions
|
||||||
RUN sed -i -z -e "s|PTH=\"/etc/weewx/skins/Belchertown/dwd\"|PTH=\"/home/weewx/skins/weewx-wdc/dwd\"|g" /tmp/weewx-dwd/usr/local/bin/wget-dwd &&\
|
RUN sed -i -z -e "s|PTH=\"/etc/weewx/skins/Belchertown/dwd\"|PTH=\"/home/weewx/skins/weewx-wdc/dwd\"|g" /tmp/weewx-dwd/weewx-DWD-master/usr/local/bin/wget-dwd &&\
|
||||||
sed -i -z -e "s|config = configobj.ConfigObj(\"/etc/weewx/weewx.conf\")|config = configobj.ConfigObj(\"/data/weewx.conf\")|g" /tmp/weewx-dwd/usr/local/bin/dwd-warnings &&\
|
sed -i -z -e "s|config = configobj.ConfigObj(\"/etc/weewx/weewx.conf\")|config = configobj.ConfigObj(\"/data/weewx.conf\")|g" /tmp/weewx-dwd/weewx-DWD-master/usr/local/bin/dwd-warnings &&\
|
||||||
chmod +x /tmp/weewx-dwd/usr/local/bin/* &&\
|
chmod +x /tmp/weewx-dwd/weewx-DWD-master/usr/local/bin/* &&\
|
||||||
chown -R weewx:weewx ${WEEWX_HOME}
|
chown -R weewx:weewx ${WEEWX_HOME}
|
||||||
|
|
||||||
# weewx setup
|
# weewx setup
|
||||||
|
@ -101,7 +101,7 @@ RUN apt-get update -qq -y &&\
|
||||||
WORKDIR ${WEEWX_HOME}
|
WORKDIR ${WEEWX_HOME}
|
||||||
COPY --from=install /opt/venv /opt/venv
|
COPY --from=install /opt/venv /opt/venv
|
||||||
COPY --from=install ${WEEWX_HOME} ${WEEWX_HOME}
|
COPY --from=install ${WEEWX_HOME} ${WEEWX_HOME}
|
||||||
COPY --from=install /tmp/weewx-dwd/usr/local/bin/* /usr/local/bin/
|
COPY --from=install /tmp/weewx-dwd/weewx-DWD-master/usr/local/bin/* /usr/local/bin/
|
||||||
COPY --chown=weewx:weewx defaults/ /defaults
|
COPY --chown=weewx:weewx defaults/ /defaults
|
||||||
|
|
||||||
RUN mkdir /data && \
|
RUN mkdir /data && \
|
||||||
|
|
Reference in a new issue