Add support for setting HELMA_USER and run helma with sudo -u $HELMA_USER
This commit is contained in:
parent
0f77c3461b
commit
b622dbd039
2 changed files with 7 additions and 1 deletions
|
@ -33,7 +33,7 @@ if [ ! -d $HELMA_HOME ]; then
|
|||
fi
|
||||
|
||||
# local settins
|
||||
RUN_CMD=$JAVA_BIN
|
||||
RUN_CMD="sudo -u $HELMA_USER $JAVA_BIN"
|
||||
RUN_ARGS="$JAVA_OPTS -jar $HELMA_HOME/launcher.jar $HELMA_ARGS"
|
||||
|
||||
case "$1" in
|
||||
|
|
|
@ -46,6 +46,12 @@ HELMA_INSTALL=/usr/local/helma/helma-1.3.1
|
|||
HELMA_HOME=$HELMA_INSTALL
|
||||
|
||||
|
||||
##############################################################
|
||||
### The user Helma should be running as
|
||||
##############################################################
|
||||
HELMA_USER=helma
|
||||
|
||||
|
||||
##############################################################
|
||||
### File to which standard and error output from Helma
|
||||
### is redirected
|
||||
|
|
Loading…
Add table
Reference in a new issue