diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-05-07 21:54:23 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-05-07 21:55:50 -0300 |
commit | 7a0427b60bcee5b904ee5d48438e793f1c77777f (patch) | |
tree | 52a2798278d992c586928c908bc8a6cff17153bf /libre-testing/xbmc-libre/xbmc.install | |
parent | 8a74ba04714d58746a48eea38d39a0e53de40be1 (diff) | |
download | abslibre-7a0427b60bcee5b904ee5d48438e793f1c77777f.tar.gz abslibre-7a0427b60bcee5b904ee5d48438e793f1c77777f.tar.bz2 abslibre-7a0427b60bcee5b904ee5d48438e793f1c77777f.zip |
xbmc-libre-13.0-2: add new version of this package (Gotham) to [libre-testing] because it is unstable with some addons
Diffstat (limited to 'libre-testing/xbmc-libre/xbmc.install')
-rw-r--r-- | libre-testing/xbmc-libre/xbmc.install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libre-testing/xbmc-libre/xbmc.install b/libre-testing/xbmc-libre/xbmc.install new file mode 100644 index 000000000..8076fe2d3 --- /dev/null +++ b/libre-testing/xbmc-libre/xbmc.install @@ -0,0 +1,19 @@ +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 -r xbmc + getent passwd xbmc > /dev/null || useradd -r -m -d /var/lib/xbmc -g xbmc xbmc + usermod -a -G xbmc,audio,video,network,optical xbmc + mkdir -p var/lib/xbmc + chown -R xbmc:xbmc var/lib/xbmc +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + [[ $(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 +} |