]> git.pld-linux.org Git - packages/webapps.git/commitdiff
- use $httpd to be organized
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 20 Nov 2005 17:58:39 +0000 (17:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    webapps.sh -> 1.3

webapps.sh

index e824f4a4ba1623d30954047e76b62fd4ca967475..2d5fabef19720d56286b1685255486d715ca29c9 100644 (file)
@@ -1,21 +1,26 @@
 #!/bin/sh
 webapps=/etc/webapps
 action="$1"
-webserver="$2"
+httpd="$2"
 app="$3"
 
 webapp_register() {
-       ln -sf $webapps/$app/$webserver.conf /etc/$webserver/webapps/$app.conf
+       ln -sf $webapps/$app/$httpd.conf /etc/$httpd/webapps/$app.conf
 }
 
 webapp_unregister() {
-       rm -f /etc/$webserver/webapps/$app.conf
+       rm -f /etc/$httpd/webapps/$app.conf
 }
 
 usage() {
        cat >&2 <<EOF
-Usage: $0 register webserver webapp
-Usage: $0 unregister webserver webapp
+Usage: $0 register httpd webapp
+Usage: $0 unregister httpd webapp
+
+Where httpd one of the webservers
+apache 1.x: apache
+apache 2.x: httpd
+lighttpd: lighttpd
 EOF
 }
 
This page took 0.085401 seconds and 4 git commands to generate.