fwupd/snap/hooks/install
Mario Limonciello c60012c784 trivial: snap: Install dbus service in classic snap
This should be reverted if switching to a devmode or confined snap.
2018-09-10 13:21:12 -05:00

14 lines
523 B
Bash
Executable File

#!/bin/sh -e
install_if_missing() {
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 etc/dbus-1/system.d/org.freedesktop.fwupd.conf /