summarylogtreecommitdiffstats
path: root/readme.install
diff options
context:
space:
mode:
authorgraysky2019-04-29 11:33:53 -0400
committergraysky2019-04-29 11:33:53 -0400
commit910b336d12ee8af1bc4069da2dc73b77eabab77c (patch)
treecea5aaf4e5c731e277a6075d64320b6d68fdf96b /readme.install
parent6e240932181e21fb1e06bb312d5ac2a774905f70 (diff)
downloadaur-910b336d12ee8af1bc4069da2dc73b77eabab77c.tar.gz
Update to 1.95-1
Diffstat (limited to 'readme.install')
-rw-r--r--readme.install25
1 files changed, 3 insertions, 22 deletions
diff --git a/readme.install b/readme.install
index 3fe317b8871e..f0e39616c428 100644
--- a/readme.install
+++ b/readme.install
@@ -1,40 +1,21 @@
post_install() {
getent group kodi > /dev/null || groupadd -g 420 kodi
if ! getent passwd kodi > /dev/null; then
- useradd -c 'kodi user' -u 420 -g kodi -G audio,video,network,optical \
+ useradd -c 'kodi user' -u 420 -g kodi -G audio,input,network,optical,video \
-d /var/lib/kodi -s /usr/bin/nologin kodi
passwd -l kodi > /dev/null
[[ ! -d /var/lib/kodi/.kodi ]] &&
mkdir /var/lib/kodi/.kodi &&
chown -R kodi:kodi /var/lib/kodi/.kodi
fi
-
- echo "==> Some drivers including Xorg's native modesetting may require the addition"
- echo "==> of /etc/X11/Xwrapper.config for X to initialize. If kodi.service fails to"
- echo "==> start, create that file containing the following single line:"
- echo "==> needs_root_rights = yes"
- echo "==> See: https://wiki.archlinux.org/index.php/Xorg#Rootless_Xorg_.28v1.16.29"
}
post_upgrade() {
- post_install $1
- if ! getent group kodi | cut -d: -f3 | grep 420 > /dev/null 2>&1; then
- groupmod -g 420 kodi > /dev/null 2>&1
- fi
- if ! id -u kodi | grep 420 > /dev/null 2>&1; then
- usermod -u 420 kodi > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- echo "==> Changing uid of user kodi failed."
- echo "==> It is recommended that the uid is changed."
- echo "==> Stop all processes running under the kodi user and reinstall kodi"
- echo "==> or change the uid manually. (usermod -u 420 kodi)"
- fi
- chown -R kodi:kodi /var/lib/kodi
- fi
+ usermod -g kodi -G audio,input,network,optical,video kodi
}
post_remove() {
- echo "==> Delete the kodi user if you are certain no processes are running under it."
+ echo "==> Optionally delete the kodi user if you are certain no processes are running under it."
echo "==> userdel kodi"
echo "==> groupdel kodi"
}