mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-03 22:21:55 +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:
		@@ -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
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user