blob: e6683ddd2a4dcb8063ea3373ef3593251363bb10 (
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
33
34
35
36
|
# arg 1: the new package version
post_install() {
if [ ! -d /var/log/mythtv ]
then
mkdir -p /var/log/mythv
chown -R mythtv /var/log/mythtv
echo "---" > /var/log/mythtv/mythbackend.log
chown mythtv /var/log/mythtv/mythbackend.log
fi
mv /usr/share/mythtv/themes/defaultmenu/is.xml /usr/share/mythtv/is.xml
ln -s /usr/share/mythtv/is.xml /usr/share/mythtv/themes/defaultmenu/is.xml
}
post_upgrade() {
if [ ! -d /var/log/mythtv ]
then
mkdir -p /var/log/mythv
chown -R mythtv /var/log/mythtv
fi
if [ -e /usr/share/mythtv/is.xml ]
then
rm -fr /usr/share/mythtv/themes/defaultmenu/is.xml
ln -s /usr/share/mythtv/is.xml /usr/share/mythtv/themes/defaultmenu/is.xml
fi
}
# arg 1: the old package version
post_remove() {
/bin/true
}
op=$1
shift
$op $*
|