SOURCES: webapps.sh - symlink name lies (keep the webapp name for ...

glen glen at pld-linux.org
Tue Jan 10 02:07:51 CET 2006


Author: glen                         Date: Tue Jan 10 01:07:50 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- symlink name lies (keep the webapp name for modules)

---- Files affected:
SOURCES:
   webapps.sh (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SOURCES/webapps.sh
diff -u SOURCES/webapps.sh:1.12 SOURCES/webapps.sh:1.13
--- SOURCES/webapps.sh:1.12	Tue Jan 10 01:06:34 2006
+++ SOURCES/webapps.sh	Tue Jan 10 02:07:45 2006
@@ -27,7 +27,7 @@
 		echo "$server:"
 		for conf in /etc/$server/webapps.d/*; do
 			[ -L $conf ] || continue
-			app=$(basename $conf .conf)
+			app=$(readlink $conf | sed -e "s,.*$webapps/,,;s,/$server.conf$,,")
 			echo "- $app"
 		done
 	done
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/webapps.sh?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list