You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/09/23 14:13:34 UTC

[jira] [Commented] (STRATOS-816) sed -i command does not work in mac osx

    [ https://issues.apache.org/jira/browse/STRATOS-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14144726#comment-14144726 ] 

ASF GitHub Bot commented on STRATOS-816:
----------------------------------------

GitHub user thushara35 opened a pull request:

    https://github.com/apache/stratos/pull/53

    Adding changes related to sed -i for mac osx

    This change is mainly due to incompatibility issues occurred in stratos when user run it on a mac os x.
    A work around solution is to use gsed instead of sed.
    How to install gsed in mac osx:
       i. Installed homebrew(http://brew.sh/)
        $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
        ii. Installed gnu-sed
        $ brew install gnu-sed
    
    changes are made in:
    stratos / tools / stratos-installer /
      demo.sh, ec2.sh,openstack.sh, setup.sh and vcloud.sh
    stratos / tools / stratos-installer / scripts /
      add_entry_zone_file.sh and remove_entry_zone_file.sh 
    
    Other than that this change also include syntax errors which can be found in setup.sh line 605:
    -chown -R $host_user.$host_user $log_path
    +chown -R $host_user:$host_user $log_path
    This code change is done by @Prasanna Dangalla
    
    JIRA - https://issues.apache.org/jira/browse/STRATOS-816

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/thushara35/stratos stratos2v

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/stratos/pull/53.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #53
    
----
commit 4ea4ce3e82f67a4c85dcbca1318cf1e17add4c8b
Author: Thushara Kasun Ranawaka <th...@gmail.com>
Date:   2014-09-23T10:17:59Z

    adding changes to gsed for mac osx

----


> sed -i command does not work in mac osx
> ---------------------------------------
>
>                 Key: STRATOS-816
>                 URL: https://issues.apache.org/jira/browse/STRATOS-816
>             Project: Stratos
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>            Reporter: Thushara Kasun Ranawaka
>            Priority: Minor
>
> I get this error "sed: -i may not be used with stdin"  when trying to setup stratos in mac os x. The command works fine in linux machines. I am using Mac OS X 10.9. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)