Created
April 15, 2010 21:46
-
-
Save hugoduncan/367706 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defscript jre-lib-security []) | |
(defimpl jre-lib-security :default [] | |
(str @(update-java-alternatives -l "|" cut "-d ' '" -f 3 "|" head -1) | |
"/jre/lib/security/")) | |
(defn security-file | |
"Installs JCE policy jars (string paths, please) in the remote | |
JAVA_HOME's lib/security directory, enabling the use of \"unlimited strength\" | |
crypto implementations. Options are as for remote-file." | |
[filename & options] | |
(apply remote-file (script (str (jre-lib-security) "/" ~filename)) options)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment