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.
This commit is contained in:
Andre Borie 2020-11-28 17:14:31 +00:00
parent b88872d54b
commit e757a3b5a7

View File

@ -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
```