Changed files:
webapps.README -> 1.5
webapps.sh -> 1.5
additionally the webserver configuration is linked to webserver config directory
which is
-apache 1.x: /etc/apache/webapps
-apache 2.x: /etc/httpd/webapps
-lighttpd: /etc/lighttpd/webapps
+apache 1.x: /etc/apache/webapps.d
+apache 2.x: /etc/httpd/webapps.d
+lighttpd: /etc/lighttpd/webapps.d
app="$3"
webapp_register() {
- ln -sf $webapps/$app/$httpd.conf /etc/$httpd/webapps/$app.conf
+ ln -sf $webapps/$app/$httpd.conf /etc/$httpd/webapps.d/$app.conf
}
webapp_unregister() {
- rm -f /etc/$httpd/webapps/$app.conf
+ rm -f /etc/$httpd/webapps.d/$app.conf
}
usage() {
if [ ! -d "$webapps/$app" ]; then
die "Missing directory: $webapps/$app"
fi
- if [ ! -d "/etc/$httpd/webapps" ]; then
- die "Missing directory: /etc/$httpd/webapps"
+ if [ ! -d "/etc/$httpd/webapps.d" ]; then
+ die "Missing directory: /etc/$httpd/webapps.d"
fi
}