mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
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.
This commit is contained in:
parent
99ba9874b1
commit
b9544d9534
1 changed files with 2 additions and 2 deletions
|
@ -143,14 +143,14 @@ $ sudo systemctl enable --now invidious.service
|
||||||
#### Logrotate:
|
#### Logrotate:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo echo "/home/invidious/invidious/invidious.log {
|
$ echo "/home/invidious/invidious/invidious.log {
|
||||||
rotate 4
|
rotate 4
|
||||||
weekly
|
weekly
|
||||||
notifempty
|
notifempty
|
||||||
missingok
|
missingok
|
||||||
compress
|
compress
|
||||||
minsize 1048576
|
minsize 1048576
|
||||||
}" | tee /etc/logrotate.d/invidious.logrotate
|
}" | sudo tee /etc/logrotate.d/invidious.logrotate
|
||||||
$ sudo chmod 0644 /etc/logrotate.d/invidious.logrotate
|
$ sudo chmod 0644 /etc/logrotate.d/invidious.logrotate
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue