Skip to content

Instantly share code, notes, and snippets.

@wstrange
Created November 4, 2011 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wstrange/1340523 to your computer and use it in GitHub Desktop.
Save wstrange/1340523 to your computer and use it in GitHub Desktop.
Runs the fedlet configurator
#!/bin/sh
# Configure the fedlet
# remove the target
rm -fr ~/fedlet.old
mv ~/fedlet ~/fedlet.old
rm -f /var/tmp/metadata*
# Get the IDP meta data fresh from OIF
(cd /var/tmp; wget http://localhost:7777/fed/idp/metadata )
# Run the fedlet config process
java -classpath fedwar/WEB-INF/lib/opensso-sharedlib.jar:fedwar/WEB-INF/lib/openfedlib.jar:install/lib/co
nfigurefedlet.jar oracle.security.fed.fedlet.install.ConfigureFedlet
# THe config program will ask for a bunch input. If you prefer you can
# Automate the process by using the following as stdin for the above java program
echo <<EOF
/home/oracle/fedlet-base
http://fedlethost:8080/fedletsample
fedletsp
1
Oracle123
Oracle123
Oracle123
Oracle123
1
/var/tmp/metadata
1
/home/oracle/fedlet
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment