-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-eap6-standalone-full.sh
executable file
·54 lines (51 loc) · 2.72 KB
/
install-eap6-standalone-full.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#! /bin/bash
#
# JBoss EAP Accelerator script - Owned and Reserved by Vizuri
#
echo '##############################################################################################################################################'
echo '##############################################################################################################################################'
echo '#################################### Welcome to JBoss EAP Installation and Configuration set up (Standalone mode using Full profile) ################################'
echo '##############################################################################################################################################'
echo '##############################################################################################################################################'
eap_path=$1
dir_path=$2
if [[ -z "$dir_path" || -z "$eap_path" ]]
then echo Please enter a valid path of JBoss EAP archive amd where you would like to install JBoss EAP as the first and second argument, and then try again. For e.g. sudo ./install-eap-standalone.sh /home/username/Downloads /opt/server
exit 0
else
echo You have chosen to install the JBoss EAP in $dir_path directory.
if [ -d $dir_path ]
then cp $eap_path/jboss-eap-6.*.*.zip $dir_path
if [ -f $eap_path/jboss-eap-6.*.*.zip ]
then echo Successfully copied the eap archive into $dir_path
else echo There was some problem copying the JBoss EAP archive into $dir_path. Please check the permissions.
exit 0
fi
else echo Did not find the directory $dir_path, so creating one..
mkdir -p "$dir_path"
if [ -d $dir_path ]
then echo Successfully created the directory $dir_path
else echo There was some problem creating the dir $dir_path. Please check the permissions.
exit 0
fi
cp $eap_path/jboss-eap-6.*.*.zip $dir_path
if [ -f $eap_path/jboss-eap-6.*.*.zip ]
then echo Successfully copied the eap archive into $dir_path
else echo There was some problem copying the JBoss EAP archive into $dir_path. Please check the permissions.
exit 0
fi
fi
echo About to unzip the jboss-eap-6.x.x.zip file into $dir_path
cd $dir_path
jar xvf jboss-eap-6.*.*.zip
echo '######################## Successfully extracted the JBoss EAP archive ########################'
cd $dir_path/jboss-eap-6.*/bin
echo Setting permission to all the script files ....
chmod 755 *.sh
echo Done...permission set.
echo Let\'s first set a management user for JBoss EAP for your to be able to access the manegement console as an admin. Please chose the user type, username, password and role\(s\) to continue
./add-user.sh
echo Now starting the jboss eap in standalone mode using full profile.....
./standalone.sh --server-config=standalone-full.xml
fi
#End of the script