blob: ff2ff18fdf6dc82fecbcbc66107716ea268cff47 (
plain)
1
2
3
4
5
6
7
8
9
10
|
post_install(){
getent group plexpy &>/dev/null || groupadd -r plexpy >/dev/null
getent passwd plexpy &>/dev/null || useradd -r -d /opt/plexpy -g plexpy -s /bin/false plexpy >/dev/null
}
post_upgrade(){
if [ ! -d `grep plexpy /etc/passwd | cut -d ":" -f6` ]; then
usermod -d /opt/plexpy plexpy >/dev/null
fi
}
|