summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-0.27/mythweb/mythweb.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-11-17 21:10:14 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-11-17 21:10:14 (GMT)
commit9bba98c7fd7dcefe263b12eea84c7a5789d3d1b9 (patch)
treef34f57bf45a6aacef74885e151b9758ffc3dba8d /abs/core/mythtv/stable-0.27/mythweb/mythweb.install
parent6038e9cb555c4bdc02517bf34a8716d8dbf4c1e7 (diff)
downloadlinhes_pkgbuild-9bba98c7fd7dcefe263b12eea84c7a5789d3d1b9.zip
linhes_pkgbuild-9bba98c7fd7dcefe263b12eea84c7a5789d3d1b9.tar.gz
linhes_pkgbuild-9bba98c7fd7dcefe263b12eea84c7a5789d3d1b9.tar.bz2
mythweb: set permissions correctly so tv_icons will be populated by mythbackend
Diffstat (limited to 'abs/core/mythtv/stable-0.27/mythweb/mythweb.install')
-rw-r--r--abs/core/mythtv/stable-0.27/mythweb/mythweb.install14
1 files changed, 9 insertions, 5 deletions
diff --git a/abs/core/mythtv/stable-0.27/mythweb/mythweb.install b/abs/core/mythtv/stable-0.27/mythweb/mythweb.install
index 0073499..b8e31a8 100644
--- a/abs/core/mythtv/stable-0.27/mythweb/mythweb.install
+++ b/abs/core/mythtv/stable-0.27/mythweb/mythweb.install
@@ -1,10 +1,16 @@
post_install() {
+ echo "==> Setting mythweb permissions."
+ chmod -R 755 /data/srv/httpd/mythweb/
+ chown mythtv:http /data/srv/httpd/mythweb/data/tv_icons
+ chmod -R 775 /data/srv/httpd/mythweb/{image_cache,php_sessions,data}
+ echo "==> Reading lighttpd's configuration file."
gen_light_include.py
- /sbin/sv hup /service/lighttpd
+ echo "==> Restarting lighttpd."
+ /sbin/sv hup /service/lighttpd
}
+
post_upgrade() {
post_install
-
}
post_remove() {
@@ -12,7 +18,5 @@ post_remove() {
echo
echo "==> Forcing a re-read of lighttpd's configuration file."
echo ""
- /sbin/sv hup /service/lighttpd
-#--
-
+ /sbin/sv hup /service/lighttpd
}