diff --git a/context/balance.sh b/context/balance.sh index b53cf8b..6c8a18e 100755 --- a/context/balance.sh +++ b/context/balance.sh @@ -1,4 +1,19 @@ #!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # setup () { cd /usr/sbin diff --git a/context/cassandra.sh b/context/cassandra.sh index 5fd47c6..1adb991 100755 --- a/context/cassandra.sh +++ b/context/cassandra.sh @@ -1,8 +1,19 @@ #!/bin/bash - -#SLAVE_ID=0 -#NUM_SLAVES=4 -#MOUNTLIST="5.62.70.23:/vol/data{10-32}" +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # getmount() { BASE=`echo $MOUNTLIST | awk -F '{' '{print $1}'` diff --git a/context/cloudfoundry.sh b/context/cloudfoundry.sh index e7e0bd1..22d16fd 100755 --- a/context/cloudfoundry.sh +++ b/context/cloudfoundry.sh @@ -1,4 +1,19 @@ #!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # HOME=/home/$DEFUSER CF_INSTALL_LOC=/opt/cloudfoundry-server/vcap diff --git a/context/cloudfoundry_scratch.sh b/context/cloudfoundry_scratch.sh deleted file mode 100755 index 202a36a..0000000 --- a/context/cloudfoundry_scratch.sh +++ /dev/null @@ -1,130 +0,0 @@ -#!/bin/bash - -# Allow VCAP_REPO to be overriden for testing -VCAP_REPO=${VCAP_REPO:-https://github.com/cloudfoundry/vcap.git} - -export rvm_trust_rvmrcs_flag=1 # Trust all rmvrcs we find - -OS=`uname -s` -if [[ $OS == 'Linux' ]]; then - PLATFORM='Linux' -elif [[ $OS == 'Darwin' ]]; then - PLATFORM='MacOSX' -else - echo "Unknown System, cancelling setup" - exit 1 -fi - -echo "" -echo '-----------------------------------------------------------' -echo "($PLATFORM) One Click Installer for VMware's Cloud Application Platform!" -echo '-----------------------------------------------------------' -echo "" - -echo "Hopefully this will be the last time you type your password" -sudo ls > /dev/null - -#read -p "Enter the password you want to use for root mysql user: " MYSQL_PASS - -#read -p "Enter the password you want to use for root postgresql user: " POSTGRESQL_PASS - -echo "Installing dependencies" -if [[ $PLATFORM == 'Linux' ]]; then - sudo apt-get update - sudo apt-get -y install coreutils autoconf curl git-core ruby bison build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev -else - echo "Sorry, we can't install dependencies for your system yet." -fi - -# Overide user-supplied mysql & postgresql passwords with random ones -# if we know how to do it on this platform -if [[ $PLATFORM == 'Linux' ]]; then - MYSQL_PASS="$(cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c10)" - POSTGRESQL_PASS="$(cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c10)" -elif [[ $PLATFORM == 'MacOSX' ]]; then - MYSQL_PASS="$(md5 -qs "$(date)")" - sleep 1 - POSTGRESQL_PASS="$(md5 -qs "$(date)")" -fi - -echo "Patch around .bash_profile issue with RMV" -if [ -f ~/.bashrc ]; then - if [ ! -f ~/.bash_profile ]; then - # rvm install is going to write into .bash_profile in this - # case and short circuit loading of .bashrc so we need to - # create a proper .bash_profile if its missing - echo "# This file is sourced by bash for login shells. The following line" >> ~/.bash_profile - echo "# runs your .bashrc and is recommended by the bash info pages." >> ~/.bash_profile - echo "[[ -f ~/.bashrc ]] && . ~/.bashrc" >> ~/.bash_profile - fi -fi - -echo "Installing rvm" -curl -s -k -B https://rvm.beginrescueend.com/install/rvm > /tmp/install_rvm -bash /tmp/install_rvm -rm /tmp/install_rvm - -echo "Activate rvm" -if (( UID > 0 )) -then - rvm_path="$HOME/.rvm" -else - rvm_path="/usr/local/rvm" -fi -[[ -s "$rvm_path/scripts/rvm" ]] && source "$rvm_path/scripts/rvm" -type rvm | head -1 - -# remove rake from default and global gems and instead install manually -rm $rvm_path/gemsets/default.gems -rm $rvm_path/gemsets/global.gems - -echo "Installing various rubies" -rvm install 1.9.2-p180 -rvm --default 1.9.2-p180 -rvm install 1.8.7-p352 - -# install only rake 0.8.7 -rvm use 1.8.7-p352 -gem install rake --version '0.8.7' --no-rdoc --no-ri - -rvm use 1.9.2-p180 -gem install rake --version '0.8.7' --no-rdoc --no-ri - -echo "Getting vcap" -[ -d ~/cloudfoundry ] || mkdir ~/cloudfoundry -cd ~/cloudfoundry - -[ -d vcap ] || git clone $VCAP_REPO -cd vcap -git submodule update --init -gem install vmc --no-rdoc --no-ri - -echo "Setting up vcap." -cd ~/cloudfoundry/vcap - -sudo setup/vcap_setup -a -s -p "$MYSQL_PASS" -q "$POSTGRESQL_PASS" - -cd ~/cloudfoundry/vcap/services/mysql/config -sed -i.bkup -e "s/pass: root/pass: $MYSQL_PASS/" mysql_node.yml - -if [ -d ~/cloudfoundry/vcap/services/postgresql ]; then - cd ~/cloudfoundry/vcap/services/postgresql/config - sed -i.bkup -e "s/9.0/8.4/g" postgresql_gateway.yml - sed -i.bkup -e "s/user: vcap/user: postgres/" -e "s/pass: vcap/pass: $POSTGRESQL_PASS/" postgresql_node.yml -fi - -echo "Restarting nginx" -cd ~/cloudfoundry/vcap -sudo cp setup/simple.nginx.conf /etc/nginx/nginx.conf -sudo /etc/init.d/nginx restart - -echo "Installing bundler" -cd ~/cloudfoundry/vcap -gem install bundler --no-rdoc --no-ri -rake bundler:install - -# don't start up vcap in this shell -# its best to exit the shell and then -# come back in so that the .rvmrc in cloudfoundry/vcap activates correctly - -echo 'Success!' diff --git a/context/cloudfoundrydea.sh b/context/cloudfoundrydea.sh index a3c390e..255db6b 100755 --- a/context/cloudfoundrydea.sh +++ b/context/cloudfoundrydea.sh @@ -1,4 +1,20 @@ #!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + # Not much to install as CloudFoundry is in template. However we will have to set # up configuration of CF. HOME=/home/rimadmin diff --git a/context/dhcpnetwork.sh b/context/dhcpnetwork.sh index bf3ae11..61154c5 100755 --- a/context/dhcpnetwork.sh +++ b/context/dhcpnetwork.sh @@ -1,4 +1,20 @@ #!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # +# # This is network contextualization script for ONE environments which # have to work with DHCP assigned IP addresses rather than letting ONE # manage the IP addresses diff --git a/context/hbasemaster.sh b/context/hbasemaster.sh index 12f3a8f..5bf5975 100755 --- a/context/hbasemaster.sh +++ b/context/hbasemaster.sh @@ -1,4 +1,19 @@ #!/bin/bash -x +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # LOGFILE=/tmp/hbasemaster.log diff --git a/context/hbaseslave.sh b/context/hbaseslave.sh index 9e1d1f6..faa0191 100755 --- a/context/hbaseslave.sh +++ b/context/hbaseslave.sh @@ -1,4 +1,19 @@ #!/bin/bash -x +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # if [ -f /mnt/context.sh ]; then . /mnt/context.sh diff --git a/context/init.sh b/context/init.sh index b96def6..2a9bd50 100755 --- a/context/init.sh +++ b/context/init.sh @@ -1,9 +1,22 @@ #!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # HOME=/home/$DEFUSER - - cd $HOME /mnt/network.sh diff --git a/context/jenkins.sh b/context/jenkins.sh index 7f47162..058e193 100755 --- a/context/jenkins.sh +++ b/context/jenkins.sh @@ -1,4 +1,19 @@ #!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # HOME=/home/$DEFUSER diff --git a/context/jenkinsslave.sh b/context/jenkinsslave.sh index d6179da..437869d 100755 --- a/context/jenkinsslave.sh +++ b/context/jenkinsslave.sh @@ -1,4 +1,19 @@ #!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # HOME=/home/$DEFUSER diff --git a/context/network.sh b/context/network.sh index 2662362..10e9124 100755 --- a/context/network.sh +++ b/context/network.sh @@ -1,4 +1,19 @@ #!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # . /mnt/context.sh diff --git a/context/redis.sh b/context/redis.sh index f0f7066..e53e3e5 100755 --- a/context/redis.sh +++ b/context/redis.sh @@ -1,9 +1,26 @@ #!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + # Install redis master on ubuntu if [ -f /mnt/context.sh ]; then . /mnt/context.sh fi +# Assume we have a pre-built package of binaries for redis REDIS_PACKAGE=redis2.6_build.tar if [ -f $HOME/context.sh ]; then diff --git a/context/redisslave.sh b/context/redisslave.sh index ee57f16..f453d91 100755 --- a/context/redisslave.sh +++ b/context/redisslave.sh @@ -1,4 +1,21 @@ #!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + + # Install redis master on ubuntu if [ -f /mnt/context.sh ]; then diff --git a/context/tomcat.sh b/context/tomcat.sh index ebcebc3..976d692 100755 --- a/context/tomcat.sh +++ b/context/tomcat.sh @@ -1,4 +1,19 @@ #!/bin/sh +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # if [ -f /mnt/context.sh ]; then . /mnt/context.sh diff --git a/misc/start-oneenvd-gs.sh b/misc/start-oneenvd-gs.sh index aa836d7..435b73b 100755 --- a/misc/start-oneenvd-gs.sh +++ b/misc/start-oneenvd-gs.sh @@ -1,3 +1,19 @@ -#!/bin/bash -x +#!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + cd /var/lib/one/opennebula-carina/bin ./oneenvd-gs &> $HOME/logs/oneenvd-gs.out & diff --git a/misc/start-oneenvd.sh b/misc/start-oneenvd.sh index d9ffe4d..523483c 100755 --- a/misc/start-oneenvd.sh +++ b/misc/start-oneenvd.sh @@ -1,3 +1,19 @@ #!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + cd /var/lib/one/opennebula-carina/bin ./oneenvd &> $HOME/logs/oneenvd.out & diff --git a/misc/update.sh b/misc/update.sh index 926413b..d1b1f6b 100755 --- a/misc/update.sh +++ b/misc/update.sh @@ -1,4 +1,20 @@ #!/bin/bash -x +# -------------------------------------------------------------------------- # +# Copyright 2011-2012, Research In Motion (rim.com) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + cd /var/lib/one mv opennebula-carina opennebula-carina.old tar xvf $1 diff --git a/packages/authorized_keys b/packages/authorized_keys deleted file mode 100755 index 05bc772..0000000 --- a/packages/authorized_keys +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCY09K2/eal1H7icp2ck3LreiLpNPnRjxE4Fjv4PsT8JmxoqnUJdLSBXNu/1SkTs9ONzMsf23ILdmhDJ2NyNhBD/C9icRQaox4TcoMKczlq1DHS6OvPw2ewFQFy6+gEV4yIspKGns0i2yCRqlIIcTWavC9ZXTBW24L7XMMz0jCv7XCLAiDFApxExxAnnyAQ1at5ZW4yBAcbhgdyXK33dyz6rrMmlzQZ73QGuOonKr0/xrcLbr3MR8pAgv6euAYed3+TdSQRuNV+N7dTjnLGA98l0LqnrRSndBSlb7/0aHCzUgZShZlpbH2i1WuZZxhRVAtsQV8PLHQUabl8YlXEDavl oneadmin@mm01.localdomain diff --git a/packages/balance b/packages/balance deleted file mode 100755 index 5b7791e..0000000 Binary files a/packages/balance and /dev/null differ diff --git a/packages/l7setup.sh b/packages/l7setup.sh deleted file mode 100755 index b530200..0000000 --- a/packages/l7setup.sh +++ /dev/null @@ -1,144 +0,0 @@ -#!/bin/bash -############################################################################# -# Setup menu for Software Gateway -############################################################################# -# -# - -SSGNODE="default" -export SSGNODE - -# Source profile for standard environment -cd `dirname $0` -. ../etc/profile - -CONFWIZARD="${SSG_HOME}/config/ssgconfig.sh" - -nojava() { - echo "Please ensure \"java\" is in the PATH, set JAVA_HOME or run with --jdk option." - exit 11 -} - -confirmedMessage() { - echo "${1}" - echo "Press [Enter] to continue"; - read; -} - -# -# Process script args -# -while (( "$#" )); do - if [ "$1" == "--jdk" ]; then - shift - if [ -f "$1" ] && [ -x "$1" ] ; then - JAVA_HOME="$(dirname $1)/.." - elif [ -x "$1/bin/java" ]; then - JAVA_HOME="$1" - else - nojava - fi - fi - shift -done - -# -# Validate Java settings -# -if [ ! -z "${JAVA_HOME}" ] ; then - if [ ! -x "${JAVA_HOME}/bin/java" ] ; then - nojava - fi -elif [ ! -z "${SSG_JAVA_HOME}" ] ; then - JAVA_HOME="${SSG_JAVA_HOME}" -else - JAVA="$(which java 2>/dev/null)" - if [ $? -ne 0 ] ; then - nojava - else - JAVA_HOME="$(dirname ${JAVA})/.." - fi -fi -export JAVA_HOME; - -export SSG_JAVA_HOME="${JAVA_HOME}" -ensure_JDK 1.6 - -# -# Menu -# -isValid="n" -while [ "$isValid" != "y" ] -do - clear - echo "Layer 7 Gateway Software configuration menu." - echo "" - echo "What would you like to do?" - echo "" - echo " 1) Upgrade the Layer 7 Gateway database" - echo " 2) Configure the Layer 7 Gateway" - echo " 3) Display the current Layer 7 Gateway configuration" - echo " 4) Change the Layer 7 Gateway Cluster Passphrase" - echo " 5) Change the Master Passphrase" - echo " X) Exit" - echo "" - echo -n "Please make a selection: " - read choice - - case $choice in - 1) - clear; - (${CONFWIZARD} -databaseUgrade); - confirmedMessage "" - clear;; - 2) - clear; - (${CONFWIZARD} auto software); - STATUS=$? - if [ $STATUS -eq 5 ] ; then - confirmedMessage "Unexpected error in configuration service." - else - confirmedMessage "" - fi - clear;; - 3) - clear; - (${CONFWIZARD} show software); - STATUS=$? - if [ $STATUS -eq 2 ] ; then - confirmedMessage "Node is not yet configured." - elif [ $STATUS -eq 5 ] ; then - confirmedMessage "Unexpected error in configuration service." - elif [ $STATUS -ne 0 ] ; then - confirmedMessage "" - fi - clear;; - 4) - clear; - (${CONFWIZARD} -changeClusterPassphrase); - confirmedMessage "" - clear;; - 5) - clear; - (${CONFWIZARD} -changeMasterPassphrase); - confirmedMessage "" - clear;; - x|X) - clear; - isValid="y"; - clear;; - *) - clear; - isValid="n"; - confirmedMessage "That is not a valid selection"; - read; - clear;; - esac - exit -done - - - - - -