summaryrefslogtreecommitdiff
path: root/libre/xbmc-libre/xbmc.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-01-21 20:27:02 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-01-21 20:27:02 -0200
commit4bd60a24f1976e63cf40667397200d568f479e48 (patch)
tree7c4fa41997b6b78e412587de9dd3666bd62a3ecd /libre/xbmc-libre/xbmc.install
parentbaa13682080bff676a2a61e605479959713ee26f (diff)
downloadabslibre-4bd60a24f1976e63cf40667397200d568f479e48.tar.gz
abslibre-4bd60a24f1976e63cf40667397200d568f479e48.tar.bz2
abslibre-4bd60a24f1976e63cf40667397200d568f479e48.zip
xbmc-libre-12.3-7: fix FS#38575 => https://bugs.archlinux.org/task/38575
Diffstat (limited to 'libre/xbmc-libre/xbmc.install')
-rw-r--r--libre/xbmc-libre/xbmc.install11
1 files changed, 6 insertions, 5 deletions
diff --git a/libre/xbmc-libre/xbmc.install b/libre/xbmc-libre/xbmc.install
index 04396af45..7fc45751a 100644
--- a/libre/xbmc-libre/xbmc.install
+++ b/libre/xbmc-libre/xbmc.install
@@ -1,10 +1,10 @@
post_install() {
[[ $(type -p gtk-update-icon-cache) ]] && usr/bin/gtk-update-icon-cache -qtf usr/share/icons/hicolor
[[ $(type -p update-desktop-database) ]] && usr/bin/update-desktop-database -q usr/share/applications
- getent group xbmc > /dev/null || groupadd xbmc
- getent passwd xbmc > /dev/null || useradd -m -d /var/lib/xbmc -g xbmc xbmc
+ getent group xbmc > /dev/null || groupadd -r xbmc
+ getent passwd xbmc > /dev/null || useradd -r -m -d /var/lib/xbmc -g xbmc xbmc
usermod -a -G xbmc,audio,video,power,network,optical,storage,disk xbmc
- chown -R 102:0 etc/polkit-1
+ chown -R xbmc:xbmc var/lib/xbmc
}
post_upgrade() {
@@ -12,6 +12,7 @@ post_upgrade() {
}
post_remove() {
- post_install $1
- echo "You may want to remove xbmc user and group"
+ [[ $(type -p gtk-update-icon-cache) ]] && usr/bin/gtk-update-icon-cache -qtf usr/share/icons/hicolor
+ [[ $(type -p update-desktop-database) ]] && usr/bin/update-desktop-database -q usr/share/applications
+ getent passwd xbmc > /dev/null || userdel xbmc
}