tag 445857 patch
thanks

The attachment addresses this bug, removing the error message.
--- tomcat5.5-5.5.25.orig/debian/tomcat5.5.init	2008-01-01 20:09:00.000000000 +0100
+++ tomcat5.5-5.5.25/debian/tomcat5.5.init	2008-01-01 18:29:08.000000000 +0100
@@ -146,10 +146,14 @@
 
 		# Clean up and set permissions on required files
 		find "$CATALINA_BASE"/temp/ -mindepth 1 -exec rm -fr {} +
-		chown --dereference "$TOMCAT5_USER" "$CATALINA_BASE/conf" \
-			"$CATALINA_BASE/conf/tomcat-users.xml" \
-			"$CATALINA_BASE/logs" "$CATALINA_BASE/temp" \
-			"$CATALINA_BASE/webapps" "$CATALINA_BASE/work" \
+		REQUIRED_FILES='"$CATALINA_BASE/conf"
+			"$CATALINA_BASE/logs" "$CATALINA_BASE/temp"
+			"$CATALINA_BASE/webapps" "$CATALINA_BASE/work"'
+		if [ -e "$CATALINA_BASE/conf/tomcat-users.xml" ]; then
+			REQUIRED_FILES=$REQUIRED_FILES'
+				"$CATALINA_BASE/conf/tomcat-users.xml"'
+		fi
+		eval chown --dereference "$TOMCAT5_USER" $REQUIRED_FILES \
 			|| true
 
 		$DAEMON -user "$TOMCAT5_USER" -cp "$JSVC_CLASSPATH" \

Reply via email to