-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuninstall_cryptopro.sh
executable file
·59 lines (45 loc) · 1.08 KB
/
uninstall_cryptopro.sh
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh
# TODO: fix epme uninstalled packed
. $(dirname $0)/functions.sh
INSTALL32=''
INSTALL64=''
case "$1" in
32)
INSTALL32="$1"
;;
64)
INSTALL64="$1"
;;
both)
INSTALL32="$1"
INSTALL64="$1"
;;
*)
fatal "Run with 32|64|both param"
esac
if [ -n "$INSTALL64" ] ; then
epme --scripts cprocsp-rdr-rutoken-64
epme --scripts cprocsp-rdr-jacarta-64
epme --scripts cprocsp-rdr-pcsc-64
if cd linux-amd64 ; then
$SUDO bash ./uninstall.sh
cd -
else
echo "Can't find distro packages, just remove rpms"
epme --scripts $(epmqp cprocsp-)
fi
# epme --scripts cprocsp-cptools-gtk-64
fi
if [ -n "$INSTALL32" ] ; then
epme --scripts cprocsp-rdr-rutoken
epme --scripts cprocsp-rdr-jacarta
epme --scripts cprocsp-rdr-pcsc
if cd linux-ia32 ; then
$SUDO i586 bash ./uninstall.sh
cd -
else
echo "Can't find distro packages, just remove rpms"
epme --scripts $(epmqp cprocsp-)
fi
# epme --scripts cprocsp-cptools-gtk
fi