From 82003723b18bb91b7293874ae3524823ec6795dc Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Wed, 11 Jun 2014 19:25:30 -0300 Subject: xbmc-libre-13.1-2: updating version FIXES: FS#40656 (https://bugs.archlinux.org/task/40656) - [xbmc] Error when upgrading xbmc while xbmc is running lirc device path given in configure so the trick for standalone is no longer needed and starting xbmc from desktop also works with lirc now --- libre/xbmc-libre/xbmc.install | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'libre/xbmc-libre/xbmc.install') diff --git a/libre/xbmc-libre/xbmc.install b/libre/xbmc-libre/xbmc.install index 406476198..48f337c55 100644 --- a/libre/xbmc-libre/xbmc.install +++ b/libre/xbmc-libre/xbmc.install @@ -10,10 +10,16 @@ post_install() { post_upgrade() { post_install $1 if ! getent group xbmc | cut -d: -f3 | grep 420 > /dev/null 2>&1; then - groupmod -g 420 xbmc + groupmod -g 420 xbmc > /dev/null 2>&1 fi if ! id -u xbmc | grep 420 > /dev/null 2>&1; then - usermod -u 420 xbmc + usermod -u 420 xbmc > /dev/null 2>&1 + if [[ $? -ne 0 ]]; then + echo "Changing uid of user xbmc failed" + echo "It is recommended that the uid is changed." + echo "Stop all processes running under the xbmc user and reinstall xbmc" + echo "or change the uid manually. (usermod -u 420 xbmc)" + fi chown -R xbmc:xbmc /var/lib/xbmc fi } -- cgit v1.2.3-54-g00ecf