The start-stash.sh passes the -m flag to su which preserves environment variables. If the script is started by root, this can cause permission issues because the HOME environment variable is set to /root and the atlstash user does not have permission to set Git config options.
...
if [ "$PRGRUNMODE" == "true" ] ; then
$sucmd -m $STASH_USER -c "$PRGDIR/catalina.sh run $@"
else
$sucmd -m $STASH_USER -c "$PRGDIR/startup.sh $@"
fi
...
Results in the following errors when run as root:
warning: unable to access '/root/.config/git/config': Permission denied warning: unable to access '/root/.gitconfig': Permission denied warning: unable to access '/root/.config/git/config': Permission denied warning: unable to access '/root/.gitconfig': Permission denied
- is related to
-
BSERV-5059 permgen.sh keeps reference to non-existing JAVA_HOME
-
- Closed
-