Last active
March 22, 2019 19:30
-
-
Save thekubebuddy/d24cd439a0b48f330ac21a29fe6d66b2 to your computer and use it in GitHub Desktop.
Installing jboss on Rpi
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
#!bin/bash/ | |
cd | |
echo "Downloading the jboss-as-7.1.." | |
#wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.zip | |
echo "Unzinging the zip" | |
unzip jboss-as-7.1.1.Final.zip | |
#rm jboss-as-7.1.1.Final.zip | |
cd ~/jboss-as-7.1.1.Final/ | |
echo "Configuring the jboss-environment" | |
export JAVA_HOME=/usr/lib/jvm/jdk-7-oracle-arm-vfp-hflt | |
echo /usr/lib/jvm/* >> JAVA | |
echo export JAVA_HOME=`cat JAVA`>~/.bash_profile | |
rm JAVA | |
echo export PATH=\$JAVA_HOME/bin:\$PATH>>~/.bash_profile | |
echo export JBOSS_HOME="$PWD">>~/.bash_profile | |
echo export PATH=\$JBOSS_HOME/bin:\$PATH >> ~/.bash_profile | |
echo "Pulling the standalone.xml" | |
cd | |
cd $JBOSS_HOME/standalone/configuration/ | |
echo "taking bakup of standalone.xml" | |
mv standalone.xml standalone_bak.xml | |
wget https://gist.githubusercontent.com/ishaq4466/11bc162193f31b6c62634da0a3f5b3aa/raw/cdd684f7075b369ee3012e36c428a3ef7a7a0d19/standalone.xml_ver1.0 | |
mv standalone.xml_ver1.* standalone.xml | |
echo "Finally booting the jboss.." | |
cd $JBOSS_HOME/bin | |
echo "Starting the jboss" | |
./standalone.sh & | |
cd | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment