Make /var/lib/nginx optional
So it's easier to reuse this in distros like Ubuntu Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
		@@ -18,7 +18,7 @@ ProtectKernelModules=true
 | 
				
			|||||||
ProtectKernelTunables=true
 | 
					ProtectKernelTunables=true
 | 
				
			||||||
ProtectProc=invisible
 | 
					ProtectProc=invisible
 | 
				
			||||||
ProtectSystem=strict
 | 
					ProtectSystem=strict
 | 
				
			||||||
ReadWritePaths=/var/lib/nginx /var/log/nginx -/var/cache/nginx
 | 
					ReadWritePaths=-/var/lib/nginx /var/log/nginx -/var/cache/nginx
 | 
				
			||||||
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
 | 
					RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
 | 
				
			||||||
RestrictNamespaces=true
 | 
					RestrictNamespaces=true
 | 
				
			||||||
RestrictRealtime=true
 | 
					RestrictRealtime=true
 | 
				
			||||||
@@ -27,4 +27,4 @@ RuntimeDirectory=nginx
 | 
				
			|||||||
RuntimeDirectoryMode=700
 | 
					RuntimeDirectoryMode=700
 | 
				
			||||||
SystemCallArchitectures=native
 | 
					SystemCallArchitectures=native
 | 
				
			||||||
SystemCallFilter=@system-service
 | 
					SystemCallFilter=@system-service
 | 
				
			||||||
SystemCallFilter=~@obsolete
 | 
					SystemCallFilter=~@obsolete
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user