Compare commits
2 Commits
17415f5efb
...
ad60fc3490
Author | SHA1 | Date | |
---|---|---|---|
ad60fc3490 | |||
e200282aab |
@ -30,6 +30,7 @@ RUN cd /usr/src/sispmctl;make; ls -al
|
||||
|
||||
RUN git clone https://github.com/fhem/fhem-mirror.git /fhem-src;cd /fhem-src;git checkout main
|
||||
RUN git clone https://gitea.federationhq.de/byterazor/FHEM-NEWSISPM.git /NEWSISPM
|
||||
RUN git clone https://gitea.federationhq.de/byterazor/FHEM-NTFY.git /FHEM-NTFY
|
||||
|
||||
#
|
||||
# the main fhem image
|
||||
@ -265,6 +266,8 @@ COPY --from=builder /usr/src/sispmctl/src/.libs/*.so* /usr/lib/
|
||||
COPY --from=builder /usr/src/sispmctl/src/.libs/sispmctl /usr/bin/
|
||||
COPY --from=builder /fhem-src/fhem /opt/fhem
|
||||
COPY --from=builder /NEWSISPM/FHEM/* /opt/fhem/FHEM/
|
||||
COPY --from=builder /FHEM-NTFY/FHEM/* /opt/fhem/FHEM/
|
||||
|
||||
# update libraries
|
||||
RUN ldconfig
|
||||
|
||||
|
@ -28,10 +28,33 @@ else
|
||||
user => "",
|
||||
password => ""
|
||||
);
|
||||
EOF
|
||||
EOF
|
||||
`" >> /opt/fhem/configDB.conf;
|
||||
elif [ "${CONFIG_DATABASE_ENGINE}" == "mysql" ] then
|
||||
|
||||
if [ -z ${CONFIG_DATABASE_USER} ]; then
|
||||
echo "please provide CONFIG_DATABASE_USER "
|
||||
exit 255
|
||||
fi
|
||||
|
||||
if [ -z ${CONFIG_DATABASE_USER} ]; then
|
||||
echo "please provide CONFIG_DATABASE_ "
|
||||
exit 255
|
||||
fi
|
||||
|
||||
echo "`cat <<EOF
|
||||
%dbconfig= (
|
||||
connection => "mysql:dbname=${CONFIG_DATABASE}",
|
||||
user => "${CONFIG_DATABASE_USER}",
|
||||
password => "${CONFIG_DATABASE_PASS}"
|
||||
);
|
||||
EOF
|
||||
else
|
||||
echo "unknown database engine provided in CONFIG_DATABASE_ENGINE"
|
||||
exit 255
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
|
||||
if [ -n "${USELOGDB}" ]; then
|
||||
@ -59,6 +82,28 @@ if [ -n "${USELOGDB}" ]; then
|
||||
);
|
||||
EOF
|
||||
`" >> /opt/fhem/db.conf;
|
||||
elif [ "${LOG_DATABASE_ENGINE}" == "mysql" ] then
|
||||
|
||||
if [ -z ${LOG_DATABASE_USER} ]; then
|
||||
echo "please provide LOG_DATABASE_USER "
|
||||
exit 255
|
||||
fi
|
||||
|
||||
if [ -z ${LOG_DATABASE_USER} ]; then
|
||||
echo "please provide LOG_DATABASE_ "
|
||||
exit 255
|
||||
fi
|
||||
|
||||
echo "`cat <<EOF
|
||||
%dbconfig= (
|
||||
connection => "mysql:dbname=${LOG_DATABASE}",
|
||||
user => "${LOG_DATABASE_USER}",
|
||||
password => "${LOG_DATABASE_PASS}"
|
||||
);
|
||||
EOF
|
||||
else
|
||||
echo "unknown database engine provided in LOG_DATABASE_ENGINE"
|
||||
exit 255
|
||||
fi
|
||||
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user