Skip to content

Instantly share code, notes, and snippets.

@wendelhp
wendelhp / UnlimitedJCEPolicyJDK8-RHEL.sh
Created April 25, 2017 18:15 — forked from bmaupin/UnlimitedJCEPolicyJDK8-RHEL.sh
Install jce_policy-8.zip on RHEL/CentOS 6/7
# See here for JDK 7: https://gist.github.com/bmaupin/4396be4bb29c5ad440b6
# See here for test to make sure this works: https://gist.github.com/evaryont/6786915
if grep -q -i "release 6" /etc/*release; then
jce_primary_link_dir=/usr/lib/jvm/jre-1.8.0-oracle.x86_64/lib/security
elif grep -q -i "release 7" /etc/*release; then
jce_primary_link_dir=/usr/lib/jvm/jce-1.8.0-oracle
fi
wget \
@wendelhp
wendelhp / UnlimitedJCEPolicyJDK7-RHEL.sh
Last active April 25, 2017 18:17 — forked from bmaupin/UnlimitedJCEPolicyJDK7-RHEL.sh
Install UnlimitedJCEPolicyJDK7.zip on RHEL/CentOS
#!/usr/bin/env bash
if [[ -z "$JAVA_HOME" ]]; then
echo "[x] JAVA_HOME is unset. You should fix this before."
exit 1
fi
cd /tmp
wget \
--no-cookies \
--no-check-certificate \