blob: 8a6567ebd769148fb4714fbd48425f3caf4d0965 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
post_install() {
if [ ! -d /usr/local/share/grpc ] ;then
printf "\nAdding workaround for missing roots.pem in /usr/local/share/grpc.\n\n"
mkdir -p /usr/local/share/grpc
touch /usr/local/share/grpc/needed_by_evelauncher
tar -xf /opt/evesetup/lib/evelauncher-1747682.tar.gz \
-C /opt/evesetup/lib --strip-components=1 \
evelauncher/roots.pem
ln -s /opt/evesetup/lib/roots.pem /usr/local/share/grpc/roots.pem
fi
}
pre_remove() {
if [ -d /usr/local/share/grpc ] ;then
if [ -r /usr/local/share/grpc/needed_by_evelauncher ] ;then
printf "\nRemove workaround for missing roots.pem in /usr/local/share/grpc.\n\n"
rm /opt/evesetup/lib/roots.pem
rm -rf /usr/local/share/grpc
fi
fi
}
|