SOURCES: webapps.sh - use $httpd to be organized
glen
glen at pld-linux.org
Sun Nov 20 18:58:44 CET 2005
Author: glen Date: Sun Nov 20 17:58:44 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use $httpd to be organized
---- Files affected:
SOURCES:
webapps.sh (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/webapps.sh
diff -u SOURCES/webapps.sh:1.2 SOURCES/webapps.sh:1.3
--- SOURCES/webapps.sh:1.2 Sun Nov 20 18:15:46 2005
+++ SOURCES/webapps.sh Sun Nov 20 18:58:39 2005
@@ -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
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/webapps.sh?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list