[pkg-java] r5265 - trunk/tomcat5.5/debian

mkoch at alioth.debian.org mkoch at alioth.debian.org
Wed Jan 2 10:26:55 UTC 2008


Author: mkoch
Date: 2008-01-02 10:26:55 +0000 (Wed, 02 Jan 2008)
New Revision: 5265

Modified:
   trunk/tomcat5.5/debian/changelog
   trunk/tomcat5.5/debian/tomcat5.5.init
Log:
* debian/tomcat5.5.init: Check user id of the user running the init script.
  Closes: #457956.


Modified: trunk/tomcat5.5/debian/changelog
===================================================================
--- trunk/tomcat5.5/debian/changelog	2008-01-02 08:36:35 UTC (rev 5264)
+++ trunk/tomcat5.5/debian/changelog	2008-01-02 10:26:55 UTC (rev 5265)
@@ -5,8 +5,10 @@
   * debian/tomcat5.5-webapps.postrm: Purge links created in postinst script.
     Closes: #453879.
   * debian/tomcat5.5-admin.links: Fix symlink for commons-io.jar. Closes: #452366.
+  * debian/tomcat5.5.init: Check user id of the user running the init script.
+    Closes: #457956.
 
- -- Michael Koch <konqueror at gmx.de>  Wed, 02 Jan 2008 09:40:32 +0100
+ -- Michael Koch <konqueror at gmx.de>  Wed, 02 Jan 2008 11:19:30 +0100
 
 tomcat5.5 (5.5.25-4) unstable; urgency=high
 

Modified: trunk/tomcat5.5/debian/tomcat5.5.init
===================================================================
--- trunk/tomcat5.5/debian/tomcat5.5.init	2008-01-02 08:36:35 UTC (rev 5264)
+++ trunk/tomcat5.5/debian/tomcat5.5.init	2008-01-02 10:26:55 UTC (rev 5265)
@@ -27,6 +27,11 @@
 CATALINA_HOME=/usr/share/$NAME
 DEFAULT=/etc/default/$NAME
 
+if [ `id -u` -ne 0 ]; then
+	echo "You need root privileges to run this script"
+	exit 1
+fi
+
 . /lib/lsb/init-functions
 . /etc/default/rcS
 




More information about the pkg-java-commits mailing list