forked from rpms/rpcbind
		
	Make sure policycoreutils is installed before using it (bz 1972133)
Make sure /var/lib/rpcbind exists (bz 1972133) Signed-off-by: Steve Dickson <steved@redhat.com> Resolves: bz1972133
This commit is contained in:
		
							parent
							
								
									ee0f81409e
								
							
						
					
					
						commit
						fbf371c8a8
					
				
							
								
								
									
										11
									
								
								rpcbind.spec
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								rpcbind.spec
									
									
									
									
									
								
							| @ -18,7 +18,7 @@ BuildRequires: make | |||||||
| BuildRequires: automake, autoconf, libtool, systemd, systemd-devel | BuildRequires: automake, autoconf, libtool, systemd, systemd-devel | ||||||
| BuildRequires: libtirpc-devel, quota-devel | BuildRequires: libtirpc-devel, quota-devel | ||||||
| Requires(pre): coreutils shadow-utils | Requires(pre): coreutils shadow-utils | ||||||
| Requires(post): systemd | Requires(post): systemd policycoreutils | ||||||
| Requires(preun): systemd | Requires(preun): systemd | ||||||
| Requires(postun): systemd coreutils | Requires(postun): systemd coreutils | ||||||
| 
 | 
 | ||||||
| @ -102,6 +102,13 @@ then | |||||||
| 	/bin/systemctl reenable rpcbind.socket  >/dev/null 2>&1 || : | 	/bin/systemctl reenable rpcbind.socket  >/dev/null 2>&1 || : | ||||||
| 	/bin/systemctl restart rpcbind.socket >/dev/null 2>&1 || : | 	/bin/systemctl restart rpcbind.socket >/dev/null 2>&1 || : | ||||||
| fi | fi | ||||||
|  | if [ ! -d /var/lib/rpcbind ] | ||||||
|  | then | ||||||
|  | 	mkdir /var/lib/rpcbind | ||||||
|  | 	chown rpc:rpc /var/lib/rpcbind | ||||||
|  | 	[ -x /usr/sbin/restorecon ] && \ | ||||||
|  | 		/usr/sbin/restorecon /var/lib/rpcbind | ||||||
|  | fi | ||||||
| 
 | 
 | ||||||
| %files | %files | ||||||
| %license COPYING | %license COPYING | ||||||
| @ -120,6 +127,8 @@ fi | |||||||
| %changelog | %changelog | ||||||
| * Wed Jun 23 2021 Steve Dickson <steved@redhat.com> - 1.2.6-1 | * Wed Jun 23 2021 Steve Dickson <steved@redhat.com> - 1.2.6-1 | ||||||
| - Use sysconfig variable in service file (bz 1972094) | - Use sysconfig variable in service file (bz 1972094) | ||||||
|  | - Make sure policycoreutils is installed before using it (bz 1972133) | ||||||
|  | - Make sure /var/lib/rpcbind exists (bz 1972133) | ||||||
| 
 | 
 | ||||||
| * Tue Jun 22 2021 Steve Dickson <steved@redhat.com> - 1.2.6-0 | * Tue Jun 22 2021 Steve Dickson <steved@redhat.com> - 1.2.6-0 | ||||||
| - Rebased to latest upstream release: rpcbind-1-2-6 (bz 1959128) | - Rebased to latest upstream release: rpcbind-1-2-6 (bz 1959128) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user