Sha256: a7e3bfd4c1476c5a316280d15bdb3804d8be3517ad62d0ea454b8c1428295d75
Contents?: true
Size: 1.73 KB
Versions: 1
Compression:
Stored size: 1.73 KB
Contents
#!/bin/sh # # Copyright 2004-2008 Crypto-Pro. All rights reserved. # # This is proprietary information of # Crypto-Pro company. # # Any part of this file can not be copied, # corrected, translated into other languages, # localized or modified by any means, # compiled, transferred over a network from or to # any computer system without preliminary # agreement with Crypto-Pro company # # --------------------------------------------------- # # This script uninstalls CryptoPro JCP v.1.0 # # Usage: # uninstall.sh <path_to_JRE> # # Example: # uninstall.sh /usr/java/jdk1.5.0_04/jre # if [ -z "$1" ]; then printf "USAGE:\n" printf " install.sh path_to_JRE\n" exit 1 fi unalias mktemp > /dev/null 2>&1 if [ -x "`which mktemp 2>/dev/null`" ] || type mktemp >/dev/null 2>&1; then DELFILESLST=`mktemp /tmp/jcp_installer.XXXXXX` || { printf "mktemp failed\n" exit 1 } else DELFILESLST=/tmp/jcp_installer.$$ touch "$DELFILESLST" fi JREDIR=$1 JAVACMD="$JREDIR/bin/java" [ -x "$JAVACMD" ] || { printf "File not found: $JAVACMD\n" exit 1 } "$JAVACMD" -version "$JAVACMD" -cp JCPinst.jar ru.CryptoPro.Install.VariantOne -uninstall all -verbose -rmsetting -skipfiles "$DELFILESLST" if [ -r "$DELFILESLST" ]; then sed "s/.*/'&'/" "$DELFILESLST" | xargs rm -f rm -f "$DELFILESLST" fi for i in JCP.jar JCP_ASN.jar forms_rt.jar asn1rt.jar JCP.jar JCP_ASN.jar Oscar.jar JCryptoP.jar JCPinst.jar JCPxml.jar JCPRequest.jar JCP_CMS.jar cpSSL.jar Util.jar OCF.jar JCPRevCheck.jar JCPRevTools.jar AsnLite.jar; do rm -f "$JREDIR/lib/ext/$i" if [ -r "$JREDIR/lib/ext/$i" ]; then printf "JVM is running or jar-files are locked:\n" printf "$JREDIR/lib/ext/$i\n" printf "Stop all processes that use Java and retry\n" exit 1 fi done
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
java2ruby-xmldsig-0.2 | lib/jcp.1.0.49/lib/uninstall.sh |