]> git.pld-linux.org Git - packages/webapps.git/commitdiff
- usability fixes
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 7 Dec 2005 00:42:41 +0000 (00:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    webapps.sh -> 1.8

webapps.sh

index af454a2f97bf0206190a7b3f5a16891f1a46e0a9..1842e42dda7187db38b72bdd2a7e249c26b8865d 100644 (file)
@@ -55,12 +55,17 @@ die() {
 }
 
 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
 }
 
This page took 0.07966 seconds and 4 git commands to generate.