Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GlassFish version is in "version" not "glassfish_version"\nWe need pa… #63

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions templates/glassfish-init-domain-debian.erb
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#! /bin/bash

### BEGIN INIT INFO
# Provides: glassfishv<%= scope.lookupvar('glassfish::glassfish_version') %>
# Provides: glassfishv<%= scope.lookupvar('glassfish::version') %>
# Required-Start: $network $local_fs $remote_fs
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Oracle Glassfish Java EE Application Server ver. <%= scope.lookupvar('glassfish::glassfish_version') %>
# Short-Description: Oracle Glassfish Java EE Application Server ver. <%= scope.lookupvar('glassfish::version') %>
### END INIT INFO

USER=<%= @runuser %>
GLASSFISHPATH=<%= scope.lookupvar('glassfish::glassfish_dir') %>/glassfish/bin
__NAME="Oracle Glassfish Java EE Application Server ver. <%= scope.lookupvar('glassfish::glassfish_version') %>"
__NAME="Oracle Glassfish Java EE Application Server ver. <%= scope.lookupvar('glassfish::version') %>"

test -x ${GLASSFISHPATH}/asadmin || exit 2

Expand All @@ -25,7 +25,7 @@ function procStart() {
fi
log_daemon_msg "Starting $__NAME"
_isOk=0
sudo -u $USER $GLASSFISHPATH/asadmin start-domain > /dev/null
sudo -u $USER $GLASSFISHPATH/asadmin --passwordfile <%= scope.lookupvar('glassfish::asadmin_passfile') %> start-domain > /dev/null
if [[ $? -ne 0 ]]; then
_isOk=2
fi
Expand Down