]> git.mxchange.org Git - payara-vagrant.git/commitdiff
Initial support for Payara 4.1.153
authorMike Croft <backtotheoldhouse@gmail.com>
Thu, 13 Aug 2015 09:25:20 +0000 (10:25 +0100)
committerMike Croft <backtotheoldhouse@gmail.com>
Thu, 13 Aug 2015 09:25:20 +0000 (10:25 +0100)
payara_service-4.1.153 [new file with mode: 0644]
provision.sh

diff --git a/payara_service-4.1.153 b/payara_service-4.1.153
new file mode 100644 (file)
index 0000000..29e84ae
--- /dev/null
@@ -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
index 1b540f31a117748fa3e35ea827b67a5819bb0a0d..d0d72acddcc647c350f8d583a18108ab6134710f 100644 (file)
@@ -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'