From e757a3b5a7f4f041bb10ece0cd12c3cf9645e817 Mon Sep 17 00:00:00 2001 From: Andre Borie Date: Sat, 28 Nov 2020 17:14:31 +0000 Subject: [PATCH] Update logrotate configuration command Using sudo with `echo ... | tee /path/to/file` doesn't make sense, as the command requiring the superuser privileges is the `tee` command and not the echo. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b5d1d088..0fe241b5 100644 --- a/README.md +++ b/README.md @@ -147,14 +147,14 @@ $ sudo systemctl start invidious.service #### Logrotate ```bash -$ sudo echo "/home/invidious/invidious/invidious.log { +$ echo "/home/invidious/invidious/invidious.log { rotate 4 weekly notifempty missingok compress minsize 1048576 -}" | tee /etc/logrotate.d/invidious.logrotate +}" | sudo tee /etc/logrotate.d/invidious.logrotate $ sudo chmod 0644 /etc/logrotate.d/invidious.logrotate ```