From 100c816b442370b8a4ed4227a316593703501490 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 29 Aug 2016 19:12:59 -0300 Subject: nitrokey-app-git: add new package to [pcr] - Packaging request #1078 -> https://labs.parabola.nu/issues/1078 --- pcr/nitrokey-app-git/nitrokey-app.install | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pcr/nitrokey-app-git/nitrokey-app.install (limited to 'pcr/nitrokey-app-git/nitrokey-app.install') diff --git a/pcr/nitrokey-app-git/nitrokey-app.install b/pcr/nitrokey-app-git/nitrokey-app.install new file mode 100644 index 000000000..1d8842bbd --- /dev/null +++ b/pcr/nitrokey-app-git/nitrokey-app.install @@ -0,0 +1,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 +} + -- cgit v1.2.3