stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nirmal Fernando <nirmal070...@gmail.com>
Subject Re: git commit: Update tools/ec2-demo-setup/config.sh by adding copy mysql connector to sc
Date Fri, 06 Sep 2013 08:31:58 GMT
On Fri, Sep 6, 2013 at 7:20 AM, Isuru Perera <isurup@wso2.com> wrote:

> Hi Manula,
>
> As I mentioned, config.sh doesn't need to copy MySQL connector jar.
>

What's the solution?

>
> And you have copied only to Stratos Controller. Usually ELB also need to
> use the same userstore database.
>
> Let's not complicate the config script as it was written only to get user
> data from the EC2 meta data service and configure the instance.
>
> Thanks!
>
> ---------- Forwarded message ----------
> From: <manula@apache.org>
> Date: Thu, Sep 5, 2013 at 12:06 PM
> Subject: git commit: Update tools/ec2-demo-setup/config.sh by adding copy
> mysql connector to sc
> To: commits@stratos.incubator.apache.org
>
>
> Updated Branches:
>   refs/heads/master b7d1abdb4 -> 858799f6b
>
>
> Update tools/ec2-demo-setup/config.sh by adding copy mysql connector to sc
>
>
> Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
> Commit:
> http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/858799f6
> Tree:
> http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/858799f6
> Diff:
> http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/858799f6
>
> Branch: refs/heads/master
> Commit: 858799f6beca78728bbcfca81b0110667f6a80d9
> Parents: b7d1abd
> Author: Manula Thantriwatte <manulac@wso2.com>
> Authored: Thu Sep 5 12:02:53 2013 +0530
> Committer: Manula Thantriwatte <manulac@wso2.com>
> Committed: Thu Sep 5 12:02:53 2013 +0530
>
> ----------------------------------------------------------------------
>  tools/ec2-demo-setup/config.sh | 5 +++++
>  1 file changed, 5 insertions(+)
> ----------------------------------------------------------------------
>
>
>
> http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/858799f6/tools/ec2-demo-setup/config.sh
> ----------------------------------------------------------------------
> diff --git a/tools/ec2-demo-setup/config.sh
> b/tools/ec2-demo-setup/config.sh
> index e405de3..5c4736a 100755
> --- a/tools/ec2-demo-setup/config.sh
> +++ b/tools/ec2-demo-setup/config.sh
> @@ -26,6 +26,8 @@
> CARTRIDGE_DEFINITIONS=/opt/apache-stratos-cc-3.0.0-SNAPSHOT/repository/deploymen
>
>  SERVICE_DEFINITIONS=/opt/apache-stratos-cc-3.0.0-SNAPSHOT/repository/deployment/server/services
>
>  PAYLOADS=/opt/apache-stratos-cc-3.0.0-SNAPSHOT/repository/resources/payload
>
>  SC_CONF_MT=/opt/apache-stratos-sc-3.0.0-SNAPSHOT/repository/conf/multitenancy
> +MYSQL_JAR=/opt/mysql-connector-java-5.1.25.jar
>
> +MYSQL_COPY_PATH=/opt/apache-stratos-sc-3.0.0-SNAPSHOT/repository/components/lib
>
>  # Make sure the user is running as root.
>  if [ "$UID" -ne "0" ]; then
> @@ -187,6 +189,9 @@ sed -i "s/S2DOMAIN/$DOMAIN/g"
> $TEMP_CONFIG_DIR/features-dashboard.xml.tmp
>  mv $TEMP_CONFIG_DIR/features-dashboard.xml.tmp
> $SC_CONF_MT/features-dashboard.xml
>  chown ubuntu:ubuntu $SC_CONF_MT/features-dashboard.xml
>
> +echo "Copying mysql connector jar" >> $LOG
> +cp -f $MYSQL_JAR $MYSQL_COPY_PATH
> +
>  echo "You have successfully configured Apache Stratos!!"
>
>  su - ubuntu -c /opt/start_servers.sh
>
>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>



-- 
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Senior Software Engineer,
WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Mime
View raw message