blob: 1d8842bbd62b51190ae9e00f336ca545f911c3c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
post_install() {
/usr/bin/getent group nitrokey >/dev/null 2>&1 || usr/sbin/groupadd -r nitrokey &>/dev/null
udevadm control --reload
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
echo "Don't forget to add users to the nitrokey group."
}
post_upgrade() {
post_install
}
post_remove() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
if /usr/bin/getent group nitrokey >/dev/null 2>&1; then
/usr/sbin/groupdel nitrokey
fi
}
|