3 webservers='apache httpd lighttpd'
13 local link=$(webapp_link $app)
14 ln -sf $webapps/$app/$httpd.conf /etc/$httpd/webapps.d/$link.conf
18 local link=$(webapp_link $app)
19 rm -f /etc/$httpd/webapps.d/$link.conf
23 echo "registered webapps${1:+ for $1}":
24 for server in ${1:-$webservers}; do
25 [ -d /etc/$server/webapps.d ] || continue
27 for conf in /etc/$server/webapps.d/*; do
28 [ -L $conf ] || continue
29 app=$(readlink $conf | sed -e "s,$webapps/,,;s,/$server.conf$,,")
37 Usage: $0 register httpd webapp
38 Usage: $0 register httpd webapp/module
39 Usage: $0 unregister httpd webapp
40 Usage: $0 unregister httpd webapp/module
42 Where httpd is one of the webservers
47 webapp modules are supported,
48 drupal tinymce module webapp name would be drupal/tinymce.
58 if [ -z "$httpd" ] || [ -z "$app" ]; then
64 if [ ! -d "$webapps/$app" ]; then
65 die "'$app' is not webapp? (Missing directory: $webapps/$app)"
67 if [ ! -d "/etc/$httpd/webapps.d" ]; then
68 die "'$httpd' is not a webserver? (Missing directory: /etc/$httpd/webapps.d)"