Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional init.sh arguments -e EAP_VERSION and -p PAM_VERSION to o… #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions init.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
#!/bin/sh
# fallback product versions
EAP_VERSION=7.1.0
PAM_VERSION=7.0.0.ER4
# optionally override default versions (any EAP 7.1.x + PAM 7.0.x will do)
while getopts ":e:p:" opt; do
case $opt in
e) EAP_VERSION=$OPTARG
echo "Overriding EAP version with $EAP_VERSION" >&2
;;
p) PAM_VERSION=$OPTARG
echo "Overriding PAM version with $PAM_VERSION" >&2
;;
\?) echo "Invalid option: -$OPTARG" >&2
;;
esac
done
DEMO="Install Demo"
AUTHORS="Red Hat"
PROJECT="[email protected]:jbossdemocentral/rhpam7-install-demo.git"
Expand All @@ -10,11 +26,11 @@ SERVER_CONF=$JBOSS_HOME/standalone/configuration/
SERVER_BIN=$JBOSS_HOME/bin
SRC_DIR=./installs
SUPPORT_DIR=./support
PAM_BUSINESS_CENTRAL=rhpam-7.0.0.ER4-business-central-eap7-deployable.zip
PAM_KIE_SERVER=rhpam-7.0.0.ER4-kie-server-ee7.zip
PAM_ADDONS=rhpam-7.0.0.ER4-add-ons.zip
PAM_BUSINESS_CENTRAL=rhpam-$PAM_VERSION-business-central-eap7-deployable.zip
PAM_KIE_SERVER=rhpam-$PAM_VERSION-kie-server-ee7.zip
PAM_ADDONS=rhpam-$PAM_VERSION-add-ons.zip
PAM_CASE_MGMT=rhpam-7.0-case-mgmt-showcase-eap7-deployable.zip
EAP=jboss-eap-7.1.0.zip
EAP=jboss-eap-$EAP_VERSION.zip
#EAP_PATCH=jboss-eap-6.4.7-patch.zip
VERSION=7.0

Expand Down