summarylogtreecommitdiffstats
path: root/hqplayer-embedded.install
blob: adfb9006d5f09b6ec2675d4e960acf939d353766 (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
post_install () {
chown -R hqplayer:hqplayer /var/hqplayer
chown -R hqplayer:hqplayer /etc/hqplayer
cd /usr/lib
ln libgupnp-1.2.so.0 libgupnp-1.0.so.4
ln libomp.so libomp.so.5
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() {
chown -R hqplayer:hqplayer /var/hqplayer
chown -R hqplayer:hqplayer /etc/hqplayer
cd /usr/lib
if [ ! -f "/usr/lib/libgupnp-1.0.so.4" ]; then
ln libgupnp-1.2.so.0 libgupnp-1.0.so.4
fi
if [ ! -f "/usr/lib/libomp.so.5" ]; then
ln 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_remove() {
cd /usr/lib
rm libgupnp-1.0.so.4
rm libomp.so.5
}