From: Tomasz Pala Date: Fri, 6 Jan 2006 15:03:07 +0000 (+0000) Subject: - added list-apps and more usage X-Git-Tag: auto/ac/webapps-0_2-6~6 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=7b49779e42a1ab6ff4eb5bc85ce8e3ef3fa811b7;p=packages%2Fwebapps.git - added list-apps and more usage Changed files: webapps.sh -> 1.9 --- diff --git a/webapps.sh b/webapps.sh index 1842e42..6cc7d00 100644 --- a/webapps.sh +++ b/webapps.sh @@ -1,4 +1,5 @@ #!/bin/sh + webapps=/etc/webapps webservers='apache httpd lighttpd' action="$1" @@ -32,12 +33,23 @@ webapp_list() { done } +webapp_list_apps() { + echo "available webapps${1:+ for $1}": + for server in ${1:-\\*}; do + for app in `ls /etc/webapps`; do + eval find /etc/webapps/$app -name $server.conf -printf '"- $app\n"' + done | uniq + done +} + usage() { cat >&2 <