Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old "get_elsa" googlecode portion of install.sh #44

Open
NoX1De opened this issue Aug 18, 2016 · 1 comment
Open

Remove old "get_elsa" googlecode portion of install.sh #44

NoX1De opened this issue Aug 18, 2016 · 1 comment

Comments

@NoX1De
Copy link

NoX1De commented Aug 18, 2016

Would it be safe to remove this now from install.sh with the google code repository no longer existing:

get_elsa(){
    # Find our current md5
    BEFORE_MD5=$($MD5SUM $SELF | cut -f1 -d\ )
    echo "Current MD5: $BEFORE_MD5"
    # Get the latest code from Google Code
    cd $BASE_DIR
    # Check to see if svn accepts --trust-server-cert
    SVN_TRUST_SERVER_CERT=" --trust-server-cert"
    svn help export | grep trust
    if [ $? -ne 0 ]; then 
        SVN_TRUST_SERVER_CERT=""
    fi
    svn -r $VERSION --non-interactive $SVN_TRUST_SERVER_CERT --force export "https://enterprise-log-search-and-archive.googlecode.com/svn/branches/elsa/1.5" elsa &&
    mkdir -p "$BASE_DIR/elsa/node/tmp/locks" && 
    touch "$BASE_DIR/elsa/node/tmp/locks/directory"
    touch "$BASE_DIR/elsa/node/tmp/locks/query"
    UPDATE_OK=$?

    DOWNLOADED="$BASE_DIR/elsa/contrib/$THIS_FILE"
    AFTER_MD5=$($MD5SUM $DOWNLOADED | cut -f1 -d\ )
    echo "Latest MD5: $AFTER_MD5"

    if [ "$BEFORE_MD5" != "$AFTER_MD5" ] && [ "$USE_LOCAL_INSTALL" != "1" ]; then
        echo "Restarting with updated install.sh..."
        echo "$SHELL $DOWNLOADED $INSTALL $OP"
        $SHELL $DOWNLOADED $INSTALL $OP;
        exit;
    else
        return $UPDATE_OK
    fi
}
@NoX1De
Copy link
Author

NoX1De commented Aug 18, 2016

Pull request has been submitted for this if it is acceptable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant