SOURCES: webapps.sh - usability fixes

glen glen at pld-linux.org
Wed Dec 7 01:42:46 CET 2005


Author: glen                         Date: Wed Dec  7 00:42:46 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- usability fixes

---- Files affected:
SOURCES:
   webapps.sh (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SOURCES/webapps.sh
diff -u SOURCES/webapps.sh:1.7 SOURCES/webapps.sh:1.8
--- SOURCES/webapps.sh:1.7	Tue Dec  6 13:59:08 2005
+++ SOURCES/webapps.sh	Wed Dec  7 01:42:41 2005
@@ -55,12 +55,17 @@
 }
 
 checkconfig() {
+	if [ -z "$httpd" ] || [ -z "$app" ]; then
+	   	usage
+		return
+	fi
+
 	# sanity check
 	if [ ! -d "$webapps/$app" ]; then
-		die "Missing directory: $webapps/$app"
+		die "'$app' is not webapp? (Missing directory: $webapps/$app)"
 	fi
 	if [ ! -d "/etc/$httpd/webapps.d" ]; then
-		die "Missing directory: /etc/$httpd/webapps.d"
+		die "'$httpd' is not a webserver? (Missing directory: /etc/$httpd/webapps.d)"
 	fi
 }
 
================================================================

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




More information about the pld-cvs-commit mailing list