mirror of
				https://git.proxmox.com/git/fwupd
				synced 2025-10-31 12:56:52 +00:00 
			
		
		
		
	 0a9665c708
			
		
	
	
		0a9665c708
		
	
	
	
	
		
			
			This error was happening on fresh snap install (not upgrade):
```
install: cannot stat '/snap/fwupd/1065/etc/dbus-1/system.d/org.freedesktop.fwupd.conf': No such file or directory
```
Fixes 41a25be6 ("Move D-Bus conf file to datadir/dbus-1/system.d")
		
	
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			761 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			761 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh -e
 | |
| 
 | |
| install_if_missing() {
 | |
| 	if [ "$2" != "/" ]; then
 | |
| 		mkdir -p $(dirname ${2}/${1})
 | |
| 	fi
 | |
| 	install -m 644 -C ${SNAP}/${1} ${2}/${1}
 | |
| }
 | |
| 
 | |
| #install policykit rules and actions
 | |
| install_if_missing share/polkit-1/actions/org.freedesktop.fwupd.policy /usr
 | |
| install_if_missing share/polkit-1/rules.d/org.freedesktop.fwupd.rules /usr
 | |
| #install dbus related items
 | |
| install_if_missing share/dbus-1/system-services/org.freedesktop.fwupd.service /usr
 | |
| install_if_missing share/dbus-1/interfaces/org.freedesktop.fwupd.xml /usr
 | |
| install_if_missing share/dbus-1/system.d/org.freedesktop.fwupd.conf /
 | |
| #activation via systemd
 | |
| install_if_missing etc/systemd/system/fwupd-activate.service /
 | |
| systemctl daemon-reload
 | |
| systemctl enable fwupd-activate
 | |
| systemctl start fwupd-activate
 |