From b9544d9534cdc61d6b2cb1c88dfa57da440c8122 Mon Sep 17 00:00:00 2001 From: Andre Borie Date: Sat, 28 Nov 2020 20:50:27 +0000 Subject: [PATCH] Update logrotate configuration command (#1500) 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 35818536..0ba0121d 100644 --- a/README.md +++ b/README.md @@ -143,14 +143,14 @@ $ sudo systemctl enable --now 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 ```