diff options
Diffstat (limited to 'libre/xbmc-libre/xbmc.install')
-rw-r--r-- | libre/xbmc-libre/xbmc.install | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libre/xbmc-libre/xbmc.install b/libre/xbmc-libre/xbmc.install index 6e477d103..406476198 100644 --- a/libre/xbmc-libre/xbmc.install +++ b/libre/xbmc-libre/xbmc.install @@ -1,8 +1,10 @@ post_install() { update_icons getent group xbmc > /dev/null || groupadd -g 420 xbmc - getent passwd xbmc > /dev/null || useradd -c 'XBMC user' -u 420 -g xbmc -G audio,video,network,optical -d /var/lib/xbmc -s /sbin/nologin xbmc - passwd -l xbmc > /dev/null + if ! getent passwd xbmc > /dev/null; then + useradd -c 'XBMC user' -u 420 -g xbmc -G audio,video,network,optical -d /var/lib/xbmc -s /sbin/nologin xbmc + passwd -l xbmc > /dev/null + fi } post_upgrade() { |