From b622dbd0391f6b7ba19a19b7a54c7467c6720537 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 3 Dec 2003 14:52:29 +0000 Subject: [PATCH] Add support for setting HELMA_USER and run helma with sudo -u $HELMA_USER --- scripts/helma | 2 +- scripts/helma.conf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/helma b/scripts/helma index eb5a9e00..a0d4824c 100755 --- a/scripts/helma +++ b/scripts/helma @@ -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 diff --git a/scripts/helma.conf b/scripts/helma.conf index 2beb1834..d28b266a 100644 --- a/scripts/helma.conf +++ b/scripts/helma.conf @@ -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