fwupd/snap/hooks/install
Mario Limonciello 25b49b7943 snap: Add an install hook for classic snap
Install the policykit rules and actions into the host system.
If switched to a devmode snap this should be reverted.
2018-09-08 08:34:36 -05:00

10 lines
253 B
Bash
Executable File

#!/bin/sh -e
install_if_missing() {
install -C ${SNAP}/${1} /usr/${1}
}
#install policykit rules and actions
install_if_missing share/polkit-1/actions/org.freedesktop.fwupd.policy
install_if_missing share/polkit-1/rules.d/org.freedesktop.fwupd.rules