summaryrefslogtreecommitdiff
path: root/pcr/nitrokey-app-git/nitrokey-app.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-29 19:12:59 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-29 19:14:48 -0300
commit100c816b442370b8a4ed4227a316593703501490 (patch)
treefec5085b1f5e9b560f05ffa23595daf3fb92f072 /pcr/nitrokey-app-git/nitrokey-app.install
parent39e0a61a100c7570114e7f667e90708c2113f9ba (diff)
downloadabslibre-100c816b442370b8a4ed4227a316593703501490.tar.gz
abslibre-100c816b442370b8a4ed4227a316593703501490.tar.bz2
abslibre-100c816b442370b8a4ed4227a316593703501490.zip
nitrokey-app-git: add new package to [pcr] - Packaging request #1078 -> https://labs.parabola.nu/issues/1078
Diffstat (limited to 'pcr/nitrokey-app-git/nitrokey-app.install')
-rw-r--r--pcr/nitrokey-app-git/nitrokey-app.install20
1 files changed, 20 insertions, 0 deletions
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
+}
+