change gc.log path and link it to stdout

This commit is contained in:
Gerrit Gogel 2021-02-01 12:57:57 +01:00
parent f14e2393a3
commit 12d47893fe
2 changed files with 3 additions and 2 deletions

View file

@ -36,7 +36,8 @@ RUN chmod u+x /scripts/*
RUN mkdir -p /opt/seafile/logs &&\
ln -sf /dev/stdout /opt/seafile/logs/seafile.log &&\
ln -sf /dev/stdout /opt/seafile/logs/controller.log &&\
ln -sf /dev/stdout /opt/seafile/logs/ccnet.log
ln -sf /dev/stdout /opt/seafile/logs/ccnet.log &&\
ln -sf /dev/stdout /opt/seafile/logs/gc.log
EXPOSE 8080 8082 8001

View file

@ -13,7 +13,7 @@ fi
(
set +e
$SEAFILE_DIR/seaf-gc.sh "$@" | tee -a /var/log/gc.log
$SEAFILE_DIR/seaf-gc.sh "$@" | tee -a /opt/seafile/logs/gc.log
exit "${PIPESTATUS[0]}"
) gc_exit_code=$?