mirror of
https://aur.archlinux.org/plex-media-server-plexpass.git
synced 2025-11-20 06:28:29 +00:00
18 lines
443 B
Plaintext
18 lines
443 B
Plaintext
post_install() {
|
|
if [[ -d /var/lib/plex ]]; then
|
|
# The directory may have been made by another package
|
|
chown -R plex: /var/lib/plex
|
|
else
|
|
install -d -m 755 -o plex -g plex /var/lib/plex
|
|
fi
|
|
}
|
|
|
|
post_upgrade() {
|
|
# The plex user's home directory needs to change too.
|
|
if [[ "$( getent passwd plex | cut -d: -f6 )" != "/usr/lib/plexmediaserver" ]]; then
|
|
usermod -d /usr/lib/plexmediaserver plex
|
|
fi
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|