diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-16 06:15:31 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-16 06:15:31 +0000 |
commit | 68c4889c3b4e931fee65daf96bbda0499d1b3752 (patch) | |
tree | dd2ee5a7b4d4ef4e92d6426207c4d4c9706832bf /sca-cpp | |
parent | 16f96409b9ad2a1451c88b4e0074b57686f02269 (diff) |
Fix configuration scripts to create directories if necessary.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@985800 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp')
-rwxr-xr-x | sca-cpp/trunk/components/webservice/axis2-conf | 1 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/http/httpd-auth-conf | 1 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/http/httpd-ssl-conf | 2 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/http/proxy-conf | 1 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/http/proxy-member-conf | 1 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/http/proxy-ssl-conf | 1 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/http/proxy-ssl-member-conf | 1 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/http/tunnel-ssl-conf | 1 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/http/vhost-conf | 2 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/http/vhost-ssl-conf | 2 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/java/java-conf | 1 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/openid/openid-conf | 2 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/openid/openid-step2-conf | 2 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/python/python-conf | 1 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/server/cpp-conf | 1 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/server/scheme-conf | 1 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/server/server-conf | 1 |
17 files changed, 22 insertions, 0 deletions
diff --git a/sca-cpp/trunk/components/webservice/axis2-conf b/sca-cpp/trunk/components/webservice/axis2-conf index 77c5b2cca0..c11e6c50d5 100755 --- a/sca-cpp/trunk/components/webservice/axis2-conf +++ b/sca-cpp/trunk/components/webservice/axis2-conf @@ -19,6 +19,7 @@ # Generate an Axis2 server conf here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` axis2_prefix=`cat axis2c.prefix` diff --git a/sca-cpp/trunk/modules/http/httpd-auth-conf b/sca-cpp/trunk/modules/http/httpd-auth-conf index ffe745db9d..be117c008f 100755 --- a/sca-cpp/trunk/modules/http/httpd-auth-conf +++ b/sca-cpp/trunk/modules/http/httpd-auth-conf @@ -19,6 +19,7 @@ # Generate a minimal HTTPD SSL configuration here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"` diff --git a/sca-cpp/trunk/modules/http/httpd-ssl-conf b/sca-cpp/trunk/modules/http/httpd-ssl-conf index 7b57539f5d..da66733f9e 100755 --- a/sca-cpp/trunk/modules/http/httpd-ssl-conf +++ b/sca-cpp/trunk/modules/http/httpd-ssl-conf @@ -19,6 +19,7 @@ # Generate a minimal HTTPD SSL configuration here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"` @@ -29,6 +30,7 @@ ssllisten=`$here/httpd-addr listen $2` sslvhost=`$here/httpd-addr vhost $2` htdocs=`echo $conf | awk '{ print $8 }'` +mkdir -p $htdocs htdocs=`readlink -f $htdocs` httpd_prefix=`cat $here/httpd.prefix` diff --git a/sca-cpp/trunk/modules/http/proxy-conf b/sca-cpp/trunk/modules/http/proxy-conf index dd6f344fa6..ff312041f5 100755 --- a/sca-cpp/trunk/modules/http/proxy-conf +++ b/sca-cpp/trunk/modules/http/proxy-conf @@ -19,6 +19,7 @@ # Generate a minimal HTTPD proxy balancer configuration here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` cat >>$root/conf/vhost.conf <<EOF diff --git a/sca-cpp/trunk/modules/http/proxy-member-conf b/sca-cpp/trunk/modules/http/proxy-member-conf index 43f31c97b0..ef9cb35e8a 100755 --- a/sca-cpp/trunk/modules/http/proxy-member-conf +++ b/sca-cpp/trunk/modules/http/proxy-member-conf @@ -19,6 +19,7 @@ # Add a proxy balancer member here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` host=$2 diff --git a/sca-cpp/trunk/modules/http/proxy-ssl-conf b/sca-cpp/trunk/modules/http/proxy-ssl-conf index be9174c5fa..f5e70e12f9 100755 --- a/sca-cpp/trunk/modules/http/proxy-ssl-conf +++ b/sca-cpp/trunk/modules/http/proxy-ssl-conf @@ -19,6 +19,7 @@ # Generate a minimal HTTPD proxy balancer configuration here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` cat >>$root/conf/vhost-ssl.conf <<EOF diff --git a/sca-cpp/trunk/modules/http/proxy-ssl-member-conf b/sca-cpp/trunk/modules/http/proxy-ssl-member-conf index 5ed1f4959f..3cc231a0a1 100755 --- a/sca-cpp/trunk/modules/http/proxy-ssl-member-conf +++ b/sca-cpp/trunk/modules/http/proxy-ssl-member-conf @@ -19,6 +19,7 @@ # Add a proxy balancer member here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` host=$2 diff --git a/sca-cpp/trunk/modules/http/tunnel-ssl-conf b/sca-cpp/trunk/modules/http/tunnel-ssl-conf index cdcb79e4e7..c401a73253 100755 --- a/sca-cpp/trunk/modules/http/tunnel-ssl-conf +++ b/sca-cpp/trunk/modules/http/tunnel-ssl-conf @@ -19,6 +19,7 @@ # Generate an SSL tunnel configuration here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"` diff --git a/sca-cpp/trunk/modules/http/vhost-conf b/sca-cpp/trunk/modules/http/vhost-conf index 9dff38d6e7..a6d54fa32a 100755 --- a/sca-cpp/trunk/modules/http/vhost-conf +++ b/sca-cpp/trunk/modules/http/vhost-conf @@ -19,6 +19,7 @@ # Generate mass dynamic virtual hosting configuration here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"` @@ -29,6 +30,7 @@ pport=`$here/httpd-addr pport $addr` vhost=`$here/httpd-addr vhost $addr` htdocs=`echo $conf | awk '{ print $8 }'` +mkdir -p $htdocs htdocs=`readlink -f $htdocs` cat >>$root/conf/httpd.conf <<EOF diff --git a/sca-cpp/trunk/modules/http/vhost-ssl-conf b/sca-cpp/trunk/modules/http/vhost-ssl-conf index 433f26e6b3..17434b9782 100755 --- a/sca-cpp/trunk/modules/http/vhost-ssl-conf +++ b/sca-cpp/trunk/modules/http/vhost-ssl-conf @@ -19,6 +19,7 @@ # Generate mass dynamic virtual hosting configuration here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"` @@ -31,6 +32,7 @@ sslpport=`$here/httpd-addr pport $ssladdr` sslvhost=`$here/httpd-addr vhost $ssladdr` htdocs=`echo $conf | awk '{ print $8 }'` +mkdir -p $htdocs htdocs=`readlink -f $htdocs` cat >>$root/conf/httpd.conf <<EOF diff --git a/sca-cpp/trunk/modules/java/java-conf b/sca-cpp/trunk/modules/java/java-conf index e0690d50ec..0290c864e5 100755 --- a/sca-cpp/trunk/modules/java/java-conf +++ b/sca-cpp/trunk/modules/java/java-conf @@ -19,6 +19,7 @@ # Generate a Java server conf here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` cat >>$root/conf/httpd.conf <<EOF diff --git a/sca-cpp/trunk/modules/openid/openid-conf b/sca-cpp/trunk/modules/openid/openid-conf index 19d7d06d99..cc503e629d 100755 --- a/sca-cpp/trunk/modules/openid/openid-conf +++ b/sca-cpp/trunk/modules/openid/openid-conf @@ -19,7 +19,9 @@ # Generate an OpenID server conf here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` + conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"` host=`echo $conf | awk '{ print $6 }'` openid_prefix=`cat $here/openid.prefix` diff --git a/sca-cpp/trunk/modules/openid/openid-step2-conf b/sca-cpp/trunk/modules/openid/openid-step2-conf index 5e46f82d6a..30fdc4846e 100755 --- a/sca-cpp/trunk/modules/openid/openid-step2-conf +++ b/sca-cpp/trunk/modules/openid/openid-step2-conf @@ -19,7 +19,9 @@ # Generate an OpenID Step2 server conf here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` + conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"` host=`echo $conf | awk '{ print $6 }'` diff --git a/sca-cpp/trunk/modules/python/python-conf b/sca-cpp/trunk/modules/python/python-conf index d4bad3a6d2..4c0cf8b4ca 100755 --- a/sca-cpp/trunk/modules/python/python-conf +++ b/sca-cpp/trunk/modules/python/python-conf @@ -19,6 +19,7 @@ # Generate a Python server conf here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` cat >>$root/conf/httpd.conf <<EOF diff --git a/sca-cpp/trunk/modules/server/cpp-conf b/sca-cpp/trunk/modules/server/cpp-conf index 0421e6bf12..62339bd4bc 100755 --- a/sca-cpp/trunk/modules/server/cpp-conf +++ b/sca-cpp/trunk/modules/server/cpp-conf @@ -19,6 +19,7 @@ # Generate a C++ server conf here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` cat >>$root/conf/httpd.conf <<EOF diff --git a/sca-cpp/trunk/modules/server/scheme-conf b/sca-cpp/trunk/modules/server/scheme-conf index 8c3b26625b..454cab424b 100755 --- a/sca-cpp/trunk/modules/server/scheme-conf +++ b/sca-cpp/trunk/modules/server/scheme-conf @@ -19,6 +19,7 @@ # Generate a Scheme server conf here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` cat >>$root/conf/httpd.conf <<EOF diff --git a/sca-cpp/trunk/modules/server/server-conf b/sca-cpp/trunk/modules/server/server-conf index 7c72233ca9..71521547fd 100755 --- a/sca-cpp/trunk/modules/server/server-conf +++ b/sca-cpp/trunk/modules/server/server-conf @@ -19,6 +19,7 @@ # Generate a server conf here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 root=`readlink -f $1` conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"` |