link scripts to common.log

This commit is contained in:
Gerrit Gogel 2021-02-01 18:13:44 +01:00
parent 88e146ab7f
commit 50b8433b2f

View file

@ -35,11 +35,12 @@ COPY scripts /scripts
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/gc.log &&\
ln -sf /dev/stdout /opt/seafile/logs/seafdav.log
touch /opt/seafile/logs/common.log &&\
ln -sf /opt/seafile/logs/common.log /opt/seafile/logs/seafile.log &&\
ln -sf /opt/seafile/logs/common.log /opt/seafile/logs/controller.log &&\
ln -sf /opt/seafile/logs/common.log /opt/seafile/logs/ccnet.log &&\
ln -sf /opt/seafile/logs/common.log /opt/seafile/logs/gc.log &&\
ln -sf /opt/seafile/logs/common.log /opt/seafile/logs/seafdav.log
EXPOSE 8080 8082 8001