Drop migration post scriptlet
This is no longer needed as the change was executed in Fedora 29 https://fedoraproject.org/wiki/Changes/NSSLoadP11KitModules
This commit is contained in:
		
							parent
							
								
									7bb9642858
								
							
						
					
					
						commit
						d60701aa6f
					
				
							
								
								
									
										15
									
								
								opensc.spec
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								opensc.spec
									
									
									
									
									
								
							| @ -125,21 +125,6 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/org.opensc.notify.de | |||||||
| 
 | 
 | ||||||
| %post | %post | ||||||
| /sbin/ldconfig | /sbin/ldconfig | ||||||
| # Remove our PKCS#11 module from NSS DB, if there is NSS installed, because |  | ||||||
| # it is already loaded by p11-kit-proxy. Using both of them can cause |  | ||||||
| # race conditions and hard-to-debug problems |  | ||||||
| # TODO Remove with F30 or so |  | ||||||
| if [ -x /usr/bin/modutil ]; then |  | ||||||
| 	isThere=`modutil -rawlist -dbdir %{nssdb} | grep %{opensc_module} || echo NO` |  | ||||||
| 	if [ ! "$isThere" == "NO" ]; then |  | ||||||
| 		modutil -delete %{opensc_module} -dbdir %{nssdb} -force || : |  | ||||||
| 
 |  | ||||||
| 	fi |  | ||||||
| 	isThere=`modutil -rawlist -dbdir sql:%{nssdb} | grep %{opensc_module} || echo NO` |  | ||||||
| 	if [ ! "$isThere" == "NO" ]; then |  | ||||||
| 		modutil -delete %{opensc_module} -dbdir sql:%{nssdb} -force || : |  | ||||||
| 	fi |  | ||||||
| fi |  | ||||||
| 
 | 
 | ||||||
| %postun | %postun | ||||||
| /sbin/ldconfig | /sbin/ldconfig | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user