forked from pool/tomcat
- call chown --no-dereference in init script (bnc#822177#c7
OBS-URL: https://build.opensuse.org/package/show/Java:packages/tomcat?expand=0&rev=27
This commit is contained in:
parent
841c5082d3
commit
2f97082c29
@ -169,7 +169,7 @@ function makeHomeDir() {
|
||||
cp -pLR /usr/share/${NAME}/conf $CATALINA_HOME
|
||||
ln -fs /usr/share/java/tomcat ${CATALINA_HOME}/lib
|
||||
ln -fs /usr/share/tomcat/webapps ${CATALINA_HOME}/webapps
|
||||
chown ${TOMCAT_USER}:${TOMCAT_USER} /var/log/${NAME}
|
||||
chown --no-dereference ${TOMCAT_USER}:${TOMCAT_USER} /var/log/${NAME}
|
||||
fi
|
||||
}
|
||||
|
||||
@ -207,9 +207,9 @@ function start() {
|
||||
# fix permissions on the log and pid files
|
||||
export CATALINA_PID="/var/run/${NAME}.pid"
|
||||
touch $CATALINA_PID
|
||||
chown ${TOMCAT_USER}:${TOMCAT_USER} $CATALINA_PID
|
||||
chown --no-dereference ${TOMCAT_USER}:${TOMCAT_USER} $CATALINA_PID
|
||||
touch $TOMCAT_LOG
|
||||
chown ${TOMCAT_USER}:${TOMCAT_USER} $TOMCAT_LOG
|
||||
chown --no-dereference ${TOMCAT_USER}:${TOMCAT_USER} $TOMCAT_LOG
|
||||
if [ "$CATALINA_HOME" != "/usr/share/tomcat" ]; then
|
||||
# Create a tomcat directory if it doesn't exist
|
||||
makeHomeDir
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 26 13:06:35 UTC 2013 - mvyskocil@suse.com
|
||||
|
||||
- call chown --no-dereference in init script (bnc#822177#c7
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 23 14:33:47 UTC 2013 - mvyskocil@suse.com
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user