2012-07-01 20:11:48 +00:00
|
|
|
post_upgrade() {
|
|
|
|
if ! getent passwd mythtv &>/dev/null; then
|
|
|
|
getent group mythtv &>/dev/null || groupadd -r mythtv >/dev/null
|
|
|
|
useradd -rmd /var/lib/mythtv -g mythtv -G video,audio,optical -s /bin/bash mythtv >/dev/null
|
|
|
|
fi
|
2012-10-06 05:02:26 +00:00
|
|
|
|
|
|
|
echo -e "You may need to load time zone tables in MySQL.\nSee http://www.mythtv.org/wiki/MySQL_Time_Zone_Tables"
|
2012-02-01 04:48:03 +00:00
|
|
|
}
|
|
|
|
|
2012-07-01 20:11:48 +00:00
|
|
|
post_install() {
|
|
|
|
echo -e "For installation information, visit:\nhttps://wiki.archlinux.org/index.php/MythTV"
|
|
|
|
|
|
|
|
post_upgrade
|
2012-02-01 04:48:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_remove() {
|
2012-07-01 20:11:48 +00:00
|
|
|
echo -e "The MythTV database was not removed. To remove it, run:\n mysql -u root -e 'drop database mythconverg;'"
|
|
|
|
[ -d var/lib/mythtv ] && echo "The MythTV home directory /var/lib/mythtv can also be removed."
|
|
|
|
|
|
|
|
getent passwd mythtv &>/dev/null && userdel mythtv >/dev/null
|
|
|
|
getent group mythtv &>/dev/null && groupdel mythtv >/dev/null
|
2012-02-01 04:48:03 +00:00
|
|
|
}
|