Skip to content

Commit

Permalink
Update to 9.1 and rename logs (#19)
Browse files Browse the repository at this point in the history
* Update to 9.2

Signed-off-by: Jean-Yves <[email protected]>

* Update log names

Signed-off-by: Jean-Yves <[email protected]>

---------

Signed-off-by: Jean-Yves <[email protected]>
  • Loading branch information
docjyJ authored Aug 21, 2024
1 parent 5614e2d commit 15d669d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# From https://github.com/stalwartlabs/mail-server/blob/main/Dockerfile
FROM stalwartlabs/mail-server:v0.9.1
FROM stalwartlabs/mail-server:v0.9.2

COPY --chmod=775 entrypoint.sh /entrypoint.sh

Expand Down
24 changes: 12 additions & 12 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ function file_logging() {

if [ "$ENSURE_FILE_LOGGING_CONFIG" = "ON" ]; then
sed -e '/^tracer\.aio-log\./d'
echo 'tracer.aio-log.type = "log"'
echo 'tracer.aio-log.level = "trace"'
echo 'tracer.aio-log.path = "/var/log"'
echo 'tracer.aio-log.prefix = "stalwart.log"'
echo 'tracer.aio-log.rotate = "daily"'
echo 'tracer.aio-log.ansi = false'
echo 'tracer.aio-log.enable = true'
echo 'tracer.log.type = "log"'
echo 'tracer.log.level = "trace"'
echo 'tracer.log.path = "/var/log"'
echo 'tracer.log.prefix = "stalwart.log"'
echo 'tracer.log.rotate = "daily"'
echo 'tracer.log.ansi = false'
echo 'tracer.log.enable = true'
else
cat
fi
Expand All @@ -201,11 +201,11 @@ function console_logging() {
fi

if [ "$ENSURE_CONSOLE_LOGGING_CONFIG" = "ON" ]; then
sed -e '/^tracer\.aio-stdout\./d'
echo 'tracer.aio-stdout.type = "stdout"'
echo 'tracer.aio-stdout.level = "trace"'
echo 'tracer.aio-stdout.ansi = false'
echo 'tracer.aio-stdout.enable = true'
sed -e '/^tracer\.aio-log\./d'
echo 'tracer.aio-log.type = "stdout"'
echo 'tracer.aio-log.level = "trace"'
echo 'tracer.aio-log.ansi = false'
echo 'tracer.aio-log.enable = true'
else
cat
fi
Expand Down

0 comments on commit 15d669d

Please sign in to comment.