From df1b8235f7ebb39af4fab6831c199d2142fe06f0 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Tue, 12 Jan 2021 10:16:09 +0000 Subject: [PATCH] [init_scripts] delete old logs of the contacts service --- init_scripts/10_delete_old_logs.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 init_scripts/10_delete_old_logs.sh diff --git a/init_scripts/10_delete_old_logs.sh b/init_scripts/10_delete_old_logs.sh new file mode 100755 index 0000000000..1b606dbf92 --- /dev/null +++ b/init_scripts/10_delete_old_logs.sh @@ -0,0 +1,7 @@ +#!/bin/sh +set -e + +# Up to version 2.5.0 the logs of the contacts service were written into a +# file that was not picked up by logrotate. +# The service is stable and we can safely discard any logs. +rm -vf /var/log/sharelatex/contacts