blob: f5abceae24fb4e50761f08a678d440a2c7f17a80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
post_install() {
COUNT=`grep -c "mythweb.include" /etc/lighttpd/conf.include`
if [ $COUNT == 0 ]
then
echo "==> Adding mythweb.include to conf.include"
echo "include \"/etc/lighttpd/mythweb.include\"" >> /etc/lighttpd/conf.include
fi
echo
echo "==> Forcing a re-read of lighttpd's configuration file."
echo ""
/sbin/sv hup /service/lighttpd
}
post_upgrade() {
post_install
}
post_remove() {
COUNT=`grep -c "mythweb.include" /etc/lighttpd/conf.include`
if [ $COUNT -gt 0 ]
then
echo "==> Removing mythweb.include from conf.include"
sed -i 's#include \"/etc/lighttpd/mythweb.include\"##' -i /etc/lighttpd/conf.include
fi
echo
echo "==> Forcing a re-read of lighttpd's configuration file."
echo ""
/sbin/sv hup /service/lighttpd
#--
}
|