Update spec file to rotate log file
This commit is contained in:
		
							parent
							
								
									f94670848e
								
							
						
					
					
						commit
						d66d4a04e7
					
				|  | @ -0,0 +1,8 @@ | ||||||
|  | /var/log/nginx-ldap-auth/daemon.log { | ||||||
|  | 	delaycompress | ||||||
|  | 	create 0644 nginx-ldap-auth nginx-ldap-auth | ||||||
|  | 	su nginx-ldap-auth nginx-ldap-auth | ||||||
|  | 	postrotate | ||||||
|  | 		/usr/bin/systemctl restart nginx-ldap-auth | ||||||
|  | 	endscript | ||||||
|  | } | ||||||
|  | @ -12,6 +12,7 @@ BuildRequires:	systemd | ||||||
| Requires:	systemd | Requires:	systemd | ||||||
| Requires:	python-ldap | Requires:	python-ldap | ||||||
| Requires:	python-argparse | Requires:	python-argparse | ||||||
|  | Requires:	logrotate | ||||||
| 
 | 
 | ||||||
| %description | %description | ||||||
| Reference implementation of method for authenticating users on behalf of | Reference implementation of method for authenticating users on behalf of | ||||||
|  | @ -28,10 +29,12 @@ mkdir -p %buildroot%_unitdir | ||||||
| install -m644 %name.service %buildroot%_unitdir/ | install -m644 %name.service %buildroot%_unitdir/ | ||||||
| install -d -m755 %buildroot/etc/default | install -d -m755 %buildroot/etc/default | ||||||
| install -m644 %name.default %buildroot/etc/default/%name | install -m644 %name.default %buildroot/etc/default/%name | ||||||
|  | install -m644 %name.logrotate %buildroot%_sysconfdir/logrotate.d/%name | ||||||
| 
 | 
 | ||||||
| %files | %files | ||||||
| %doc README.md nginx-ldap-auth.conf backend-sample-app.py LICENSE | %doc README.md nginx-ldap-auth.conf backend-sample-app.py LICENSE | ||||||
| /etc/default/%name | /etc/default/%name | ||||||
|  | %_sysconfdir/logrotate.d/%name | ||||||
| %_bindir/nginx-ldap-auth-daemon | %_bindir/nginx-ldap-auth-daemon | ||||||
| %_unitdir/%name.service | %_unitdir/%name.service | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue