summarylogtreecommitdiffstats
path: root/hqplayer-embedded.install
blob: 0379a9a380bf48a594b4638f88a4cbd73de0a175 (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
37
38
39
40
41
42
43
44
45
post_install () {
mkdir -p /var/lib/hqplayer/home
chown -R root:root /var/lib/hqplayer
chown -R root:root /etc/hqplayer
cd /usr/lib
if [ ! -f "libgupnp-1.2.so.0" ]; then
ln -s libgupnp-1.2.so.1 libgupnp-1.2.so.0
fi
if [ ! -f "libgupnp-av-1.0.so.2" ]; then
ln -s libgupnp-av-1.0.so.3 libgupnp-av-1.0.so.2
fi
if [ ! -f "libomp.so.5" ]; then
ln -s libomp.so libomp.so.5
fi
if [ ! -f "libFLAC.so.8" ]; then
ln -s libFLAC.so.12 libFLAC.so.8
fi
if [ ! -f "/etc/pki/tls/certs/ca-bundle.crt" ]; then
mkdir -p /etc/pki/tls/certs
ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
fi
}

post_upgrade() {
mkdir -p /var/lib/hqplayer/home
chown -R root:root /var/lib/hqplayer
chown -R root:root /etc/hqplayer
cd /usr/lib
if [ ! -f "libgupnp-1.2.so.0" ]; then
ln -s libgupnp-1.2.so.1 libgupnp-1.2.so.0
fi
if [ ! -f "libgupnp-av-1.0.so.2" ]; then
ln -s libgupnp-av-1.0.so.3 libgupnp-av-1.0.so.2
fi
if [ ! -f "libomp.so.5" ]; then
ln -s libomp.so libomp.so.5
fi
if [ ! -f "libFLAC.so.8" ]; then
ln -s libFLAC.so.12 libFLAC.so.8
fi
if [ ! -f "/etc/pki/tls/certs/ca-bundle.crt" ]; then
mkdir -p /etc/pki/tls/certs
ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
fi
}