]> git.pld-linux.org Git - packages/webapps.git/commitdiff
- webapp modules support
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 5 Dec 2005 18:53:07 +0000 (18:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    webapps.sh -> 1.6

webapps.sh

index be3fd648845b8f63d2836728961079be4ca75e71..ce5f82bfca0cd286a140d936e88921633215ee9b 100644 (file)
@@ -4,23 +4,34 @@ action="$1"
 httpd="$2"
 app="$3"
 
+webapp_link() {
+       echo "$1" | tr '/' '-'
+}
+
 webapp_register() {
-       ln -sf $webapps/$app/$httpd.conf /etc/$httpd/webapps.d/$app.conf
+       local link=$(webapp_link $app)
+       ln -sf $webapps/$app/$httpd.conf /etc/$httpd/webapps.d/$link.conf
 }
 
 webapp_unregister() {
-       rm -f /etc/$httpd/webapps.d/$app.conf
+       local link=$(webapp_link $app)
+       rm -f /etc/$httpd/webapps.d/$link.conf
 }
 
 usage() {
        cat >&2 <<EOF
 Usage: $0 register httpd webapp
+Usage: $0 register httpd webapp/module
 Usage: $0 unregister httpd webapp
+Usage: $0 unregister httpd webapp/module
 
 Where httpd is one of the webservers
 apache 1.x: apache
 apache 2.x: httpd
 lighttpd: lighttpd
+
+webapp modules are supported,
+drupal tinymce module webapp name would be drupal/tinymce.
 EOF
 }
 
This page took 0.071503 seconds and 4 git commands to generate.