summarylogtreecommitdiffstats
path: root/hqplayer-embedded-sse.install
blob: c6034fd0a14e14ca57c2b32c6821a33ceb6229cf (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
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 "/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 "/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
}