summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorAndre Borie <hi@rjevski.io>2020-11-28 20:50:27 +0000
committerGitHub <noreply@github.com>2020-11-28 21:50:27 +0100
commitb9544d9534cdc61d6b2cb1c88dfa57da440c8122 (patch)
tree6af5ab974fb0363e04fa8edc2201bd0f740f8948 /README.md
parent99ba9874b11bb0a5b67854d338ce968e83c69c41 (diff)
downloadinvidious-b9544d9534cdc61d6b2cb1c88dfa57da440c8122.tar.gz
invidious-b9544d9534cdc61d6b2cb1c88dfa57da440c8122.tar.bz2
invidious-b9544d9534cdc61d6b2cb1c88dfa57da440c8122.zip
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.
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files 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
```