Route cron root through /proc/1/fd/1

https://github.com/alexbelgium/hassio-addons/issues/752
This commit is contained in:
Alexandre
2023-03-08 10:32:01 +01:00
committed by GitHub
parent 13bff2d599
commit 1fdb5b9fb1

View File

@@ -43,7 +43,10 @@ RUN \
/etc/php*/php.ini || true && \
\
# Change location of executable
sed -i "s|/config|/data/config|g" /usr/bin/occ
sed -i "s|/config|/data/config|g" /usr/bin/occ && \
\
# Change location of log
sed -i "s|www/nextcloud/cron.php|www/nextcloud/cron.php &>/proc/1/fd/1|g" /etc/crontabs/root
# Global LSIO modifications
ARG CONFIGLOCATION="/data/config"