From 5bacad2130436efa0af076e766be05d17deff480 Mon Sep 17 00:00:00 2001 From: Mike Croft Date: Thu, 13 Aug 2015 10:25:20 +0100 Subject: [PATCH] Initial support for Payara 4.1.153 --- payara_service-4.1.153 | 34 ++++++++++++++++++++++++++++++++++ provision.sh | 24 +++++++++++++++++++++++- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 payara_service-4.1.153 diff --git a/payara_service-4.1.153 b/payara_service-4.1.153 new file mode 100644 index 0000000..29e84ae --- /dev/null +++ b/payara_service-4.1.153 @@ -0,0 +1,34 @@ +#!/bin/sh +# +# Basic Payara service +# + +PAYARA_HOME=/opt/payara/payara-4.1.153/payara41 +export PAYARA_HOME + + + +start() { + echo -n "Starting Payara: " + $PAYARA_HOME/bin/asadmin start-domain $1 +} + +stop() { + echo -n "Stopping Payara: " + $PAYARA_HOME/bin/asadmin stop-domain $1 +} + + +case "$1" in +start) + start $2 + ;; +stop) + stop $2 + ;; +restart) + $PAYARA_HOME/bin/asadmin restart-domain >/dev/null + ;; +\*) + echo "usage: $0 (start|stop|restart|help)" +esac diff --git a/provision.sh b/provision.sh index 1b540f3..d0d72ac 100644 --- a/provision.sh +++ b/provision.sh @@ -6,7 +6,7 @@ # # Payara Version -PAYARA_VERSION=4.1.152 +PAYARA_VERSION=4.1.153 # Payara URLs case "$PAYARA_VERSION" in @@ -31,6 +31,17 @@ case "$PAYARA_VERSION" in MULTI_LANGUAGE_FULL=http://bit.ly/1H4SrdQ MULTI_LANGUAGE_WEB=http://bit.ly/1G8NKnd ;; + 4.1.153) + # The below links are to 4.1.153 + FULL=http://bit.ly/1I4tz9r + WEB=http://bit.ly/1IaXo67 + MINIMAL=http://bit.ly/1OQGy0K + MICRO=http://bit.ly/1JTP36N + EMBEDDED_FULL=http://bit.ly/1h7MeZ6 + EMBEDDED_WEB=http://bit.ly/1DS74QT + MULTI_LANGUAGE_FULL=http://bit.ly/1Sk4NKm + MULTI_LANGUAGE_WEB=http://bit.ly/1H6pcXw + ;; \*) echo "unknown version number" esac @@ -58,6 +69,13 @@ wget -q $WEB -O temp.zip > /dev/null # Download Payara sudo mkdir -p $PAYARA_HOME/startup # Make dirs for Payara unzip -qq temp.zip -d $PAYARA_HOME # unzip Payara to dir +######################################### +# +# Delete or comment out from here down +# for Micro/Embedded versions +# +######################################### + # Copy startup script, and create service echo "installing startup scripts" sudo cp /vagrant/payara_service-$PAYARA_VERSION $PAYARA_HOME/startup/ @@ -71,6 +89,7 @@ sudo chown -R vagrant:vagrant $PAYARA_HOME # Make sure vagrant owns dir echo "starting Payara..." +# Explicitly start payaradomain by default case "$PAYARA_VERSION" in 4.1.151) su - vagrant -c 'service payara start domain1' @@ -78,6 +97,9 @@ case "$PAYARA_VERSION" in 4.1.152) su - vagrant -c 'service payara start payaradomain' ;; + 4.1.153) + su - vagrant -c 'service payara start payaradomain' + ;; /*) echo "Unknown Payara version, attempting to start domain1..." su - vagrant -c 'service payara start domain1' -- 2.39.5