summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-0.27/mythweb/mythweb.install
blob: b8e31a81685d774d93adef232fc3c4254efb9a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
 echo "==> Restarting lighttpd."
 /sbin/sv hup /service/lighttpd
}

post_upgrade() {
  post_install
}

post_remove() {
 gen_light_include.py
 echo
 echo "==> Forcing a re-read of lighttpd's configuration file."
 echo ""
 /sbin/sv hup /service/lighttpd
}