Hi Nirmal,
If we can use -n alone with -i will do the job(tested in mac osx).
example:- sed -i -n s@USERSTORE_DB_SCHEMA@$userstore_db_schema@g mysql.sql
in the sed manual its stated like this
-i *extension*
Edit files in-place, saving backups with the specified
extension. If a
Cool.. thanks for checking. So, we could go with this? Wdyt? This avoid the
pre-requisite of having gsed.
On Wed, Sep 24, 2014 at 11:42 AM, Thushara Ranawaka thusha...@wso2.com
wrote:
Hi Nirmal,
If we can use -n alone with -i will do the job(tested in mac osx).
example:- sed -i -n
Hi Nirmal,
We had below issue as well,
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ...
[file ...]
Above error generated when we try to execute
line 549 sed-r -i -e 's@^(\s*)(transportConnector
Hi,
Make sure your changes works in Linux(Debian) environment too. In case we
can not make a script that works on both environments, it is better to have
separate scripts for Mac.
IMO It is better not to have dependent prerequisites for Linux environments.
On Wed, Sep 24, 2014 at 11:59 AM,
Hi ,
Me too think its good to have separate scripts for mac. If that so my
attached scripts can be used.
Thanks
On Wed, Sep 24, 2014 at 12:19 PM, Udara Liyanage ud...@wso2.com wrote:
Hi,
Make sure your changes works in Linux(Debian) environment too. In case we
can not make a script that
It's a maintenance overhead IMO and I don't think it's a best practice.
On Wed, Sep 24, 2014 at 12:30 PM, Prasanna Dangalla prasa...@wso2.com
wrote:
Hi ,
Me too think its good to have separate scripts for mac. If that so my
attached scripts can be used.
Thanks
On Wed, Sep 24, 2014 at
Hi,
In my background search i found that sed -r option is not available in mac
osx(not included in mac osx sed manual)
(below the result in ubuntu)
$ man sed
-r, --regexp-extended
use extended regular expressions in the script.
In mac os x we can use -E instead of -r if so we need
Hi all,
We are moving forward with proposed[1] development.
Thanks all !
[1] - https://github.com/apache/stratos/pull/54#issuecomment-56644808
On Wed, Sep 24, 2014 at 4:46 PM, Uvindra Dias Jayasinha uvin...@wso2.com
wrote:
Just my two cents, if its not possible to have a shell script that
Guys,
One concern; isn't there anyway to avoid this new package installation ?
Wouldn't sed -n an option in OS X (
http://www.maclife.com/article/columns/terminal_101_find_and_replace_using_sed
)
On Wed, Sep 17, 2014 at 11:48 PM, Thushara Ranawaka thusha...@wso2.com
wrote:
Hi,
Thank you
Thanks Lasindu,
Thushara and I are in the process of modifying the shell scripts suitable
for osx.
We contacted Nirmal, Lakmal, Waruna and Udara and had a quick discussion.
After the discussion, the solution we found was to delete the
USERSTORE_DB_SCHEMA database from mysql manually.
As
On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya suh...@wso2.com
wrote:
Thanks Lasindu,
Thushara and I are in the process of modifying the shell scripts suitable
for osx.
We contacted Nirmal, Lakmal, Waruna and Udara and had a quick discussion.
After the discussion, the solution we
Hi Udara,
Yes, We will do the needful.
Thanks,
Thushara.
On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com wrote:
On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya suh...@wso2.com
wrote:
Thanks Lasindu,
Thushara and I are in the process of modifying the shell scripts
Hi,
The $subject error occurs because in the first time the script fails, and
at that time it already create the database. Since you didn't run the
clean.sh databases are already in the environment. After you run the
setup.sh in second time you will get the $subject error.
Thanks !
On Wed, Sep
HI,
The sed issue came to me also. I modifed the scripts and changed all sed
to gsed.
On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte
manu...@wso2.com wrote:
Hi,
The $subject error occurs because in the first time the script fails, and
at that time it already create the
Hi Manula,
Nirmal, Thushara and I did try running clean.sh script but had no luck.
Sample output is as follows.
Note that mysql root password is 'pass'.
Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root -p pass
Please confirm that you want to remove stratos databases, servers
Hi Suhan,
Can you please debug and see the username and the password is actually
there in the database cleanup function. You can simply use echo statement
inside the drop database function and verify that. clean.sh script work
perfectly in ubuntu. I'm not sure is there any impact on MAC.
Thanks
Hi,
For mac install homebrew and install gsed.
Change the sed commands in setup.sh and openstack.sh
I have attached above mentioned two files with changes
On Wed, Sep 17, 2014 at 2:41 PM, Manula Chathurika Thantriwatte
manu...@wso2.com wrote:
Hi Suhan,
Can you please debug and see the
Hi Manula,
FYI
In mac when we run mysql -u $mysql_user -p$mysql_pass -e DROP DATABASE IF
EXISTS $userstore_db_schema; it works without any issue. we will debug
the shell script and let you know.
mysql show databases;
+-+
| Database|
+-+
|
Hi,
Issue was the database name.
I did the following changes in the setup.conf and now clean.sh is working
properly.
# export userstore_db_schema=userstore
export userstore_db_schema=USERSTORE_DB_SCHEMA # for mac osx
Is there any issue or conflict in above setup?
Thanks,
Thushara
On Wed, Sep
Hi,
It might be a problem. Then it create the database as
USERSTORE_DB_SCHEMA. Isn't it ?
On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka thusha...@wso2.com
wrote:
Hi,
Issue was the database name.
I did the following changes in the setup.conf and now clean.sh is working
properly.
#
Hi Manula,
Yes it is.
On Wed, Sep 17, 2014 at 3:18 PM, Manula Chathurika Thantriwatte
manu...@wso2.com wrote:
Hi,
It might be a problem. Then it create the database as
USERSTORE_DB_SCHEMA. Isn't it ?
On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka thusha...@wso2.com
wrote:
Hi,
Please check the place where it creates this database. Seems like it's not
properly replaced.
On Wed, Sep 17, 2014 at 3:22 PM, Thushara Ranawaka thusha...@wso2.com
wrote:
Hi Manula,
Yes it is.
On Wed, Sep 17, 2014 at 3:18 PM, Manula Chathurika Thantriwatte
manu...@wso2.com wrote:
Hi,
Hi all,
Issue was with the sed and database name.
Fixed those in suhanr's mac and stratos installed successfully :D .
Step followed
1. Installed homerew
ruby -e $(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)
2. Installed gnu-sed
brew install gnu-sed
3.
Hi all,
Adding to Prasanna's comment.
Following issue,
Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
chown: suhanr: illegal group name
was solved by,
1. Adding a user group as suhanr in mac osx (System Preferences - Users
Groups (Unlock to change) - new Group as
Hi,
FYI
For mac osx it is illegal to use sed -r. As per a work around solution we
use -E instead of -r.
We used apache-stratos-4.0.0 version.
Thanks
On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya suh...@wso2.com wrote:
Hi,
Myself and Thushara were following the tutorial [1] installing
We have installed mysql for OSX 10.9 [1]
[1] http://www.macminivault.com/mysql-mavericks/
On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya suh...@wso2.com wrote:
Hi,
Myself and Thushara were following the tutorial [1] installing apache
Stratos and came to the following section.
-
Hi Thushara and Suhan,
Better if you can discuss the issues related to Apaches Stratos in
stratos-dev list (http://stratos.apache.org/community/mailing-lists.html)
But for now, regarding the issues you have when setting up Stratos in osx,
Nirmal, Reka or Prasanna might be able to help (Added).
27 matches
Mail list logo