소스 검색

[init_scripts] delete old logs of the contacts service

Jakob Ackermann 5 년 전
부모
커밋
89fe7ca11a
1개의 변경된 파일과 7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      server-ce/init_scripts/10_delete_old_logs.sh

+ 7 - 0
server-ce/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