summaryrefslogtreecommitdiff
path: root/community-staging/mythtv/mythtv.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-02 00:01:20 +0000
committerroot <root@rshg054.dnsready.net>2012-07-02 00:01:20 +0000
commit9d209f25af63a35774000e87df4e188057f71b2f (patch)
treede003993674c9d9e51d40ea831588cd516c01a11 /community-staging/mythtv/mythtv.install
parent55f2d1ab0ab1bd2f7c8c7c5cefeb45f7c457a5d9 (diff)
Mon Jul 2 00:01:20 UTC 2012
Diffstat (limited to 'community-staging/mythtv/mythtv.install')
-rw-r--r--community-staging/mythtv/mythtv.install19
1 files changed, 14 insertions, 5 deletions
diff --git a/community-staging/mythtv/mythtv.install b/community-staging/mythtv/mythtv.install
index c29a53454..eed25b868 100644
--- a/community-staging/mythtv/mythtv.install
+++ b/community-staging/mythtv/mythtv.install
@@ -1,11 +1,20 @@
-post_install() {
- echo "See \"MythTV\" on the Archlinux Wiki for installation information - Extensive!!"
+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
}
-post_upgrade() {
- return
+post_install() {
+ echo -e "For installation information, visit:\nhttps://wiki.archlinux.org/index.php/MythTV"
+
+ post_upgrade
}
post_remove() {
- echo -e "NOTE: mysql database was not removed. To remove run:\nmysql -u root -e 'drop database mythconverg;'"
+ 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
}