Change default permission for log files
I am trying to change the default permissions for log files created by Bonita on the server.
I'm speaking of all files in BONITA_HOME/server/logs
With a standard install, log files are created with rwxr-----
I want them to be rwxr--r-- (add read permission to all users)
In the file "BONITA_HOME/server/bin/catalina.sh", a script sets UMASK:
# Set UMASK unless it has been overridden if [ -z "$UMASK" ]; then UMASK="0027" fi umask $UMASK
I tried to set the following code in "BONITA_HOME/server/bin/setenv.sh" :
UMASK="0022" export UMASK
However, the file gets overwritten when restarting Bonita server.
Any idea how I can do this ?