Skip to content

Instantly share code, notes, and snippets.

@vlado
Last active August 5, 2016 09:18
Show Gist options
  • Select an option

  • Save vlado/c19b5c1f6c4540d6605afc939fcbead2 to your computer and use it in GitHub Desktop.

Select an option

Save vlado/c19b5c1f6c4540d6605afc939fcbead2 to your computer and use it in GitHub Desktop.

Revisions

  1. vlado revised this gist Aug 1, 2016. 1 changed file with 0 additions and 5 deletions.
    5 changes: 0 additions & 5 deletions install_neo4j_on_semaphore_ci.sh
    Original file line number Diff line number Diff line change
    @@ -10,9 +10,4 @@ sudo mv /tmp/neo4j.list /etc/apt/sources.list.d
    sudo apt-get update
    sudo apt-get install neo4j -y

    echo "Adding custom neo4j config"
    echo "dbms.security.auth_enabled=false" | sudo tee -a /etc/neo4j/neo4j.conf
    echo "dbms.connector.http.address=0.0.0.0:7474" | sudo tee -a /etc/neo4j/neo4j.conf
    echo "Custom config added"
    # curl -H "Content-Type: application/json" -X POST -d '{"password":"secret"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password
    echo "Password changed"
  2. vlado revised this gist Aug 1, 2016. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions install_neo4j_on_semaphore_ci.sh
    Original file line number Diff line number Diff line change
    @@ -10,10 +10,9 @@ sudo mv /tmp/neo4j.list /etc/apt/sources.list.d
    sudo apt-get update
    sudo apt-get install neo4j -y

    echo "neo4j status"
    sudo neo4j status
    echo "Adding custom neo4j config"
    echo "dbms.security.auth_enabled=false" | sudo tee -a /etc/neo4j/neo4j.conf
    echo "dbms.connector.http.address=0.0.0.0:7474" | sudo tee -a /etc/neo4j/neo4j.conf
    echo "Changing password"
    echo "Custom config added"
    # curl -H "Content-Type: application/json" -X POST -d '{"password":"secret"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password
    echo "Password changed"
  3. vlado revised this gist Aug 1, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install_neo4j_on_semaphore_ci.sh
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,7 @@ sudo apt-get install neo4j -y
    echo "neo4j status"
    sudo neo4j status
    echo "dbms.security.auth_enabled=false" | sudo tee -a /etc/neo4j/neo4j.conf
    echo "dbms.connector.http.address=0.0.0.0:7474" | sudo tee -a /etc/neo4j/neo4j.conf
    echo "Changing password"
    # curl -H "Content-Type: application/json" -X POST -d '{"password":"secret"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password
    echo "Password changed"
  4. vlado revised this gist Aug 1, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install_neo4j_on_semaphore_ci.sh
    Original file line number Diff line number Diff line change
    @@ -15,3 +15,4 @@ sudo neo4j status
    echo "dbms.security.auth_enabled=false" | sudo tee -a /etc/neo4j/neo4j.conf
    echo "Changing password"
    # curl -H "Content-Type: application/json" -X POST -d '{"password":"secret"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password
    echo "Password changed"
  5. vlado revised this gist Aug 1, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_neo4j_on_semaphore_ci.sh
    Original file line number Diff line number Diff line change
    @@ -14,4 +14,4 @@ echo "neo4j status"
    sudo neo4j status
    echo "dbms.security.auth_enabled=false" | sudo tee -a /etc/neo4j/neo4j.conf
    echo "Changing password"
    curl -H "Content-Type: application/json" -X POST -d '{"password":"secret"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password
    # curl -H "Content-Type: application/json" -X POST -d '{"password":"secret"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password
  6. vlado revised this gist Aug 1, 2016. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion install_neo4j_on_semaphore_ci.sh
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,5 @@ sudo apt-get install neo4j -y
    echo "neo4j status"
    sudo neo4j status
    echo "dbms.security.auth_enabled=false" | sudo tee -a /etc/neo4j/neo4j.conf
    sudo neo4j status
    echo "Changing password"
    curl -H "Content-Type: application/json" -X POST -d '{"password":"secret"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password
  7. vlado revised this gist Aug 1, 2016. 1 changed file with 0 additions and 6 deletions.
    6 changes: 0 additions & 6 deletions install_neo4j_on_semaphore_ci.sh
    Original file line number Diff line number Diff line change
    @@ -10,12 +10,6 @@ sudo mv /tmp/neo4j.list /etc/apt/sources.list.d
    sudo apt-get update
    sudo apt-get install neo4j -y

    echo "neo4j status"
    sudo neo4j status
    echo "starting neo4j"
    sudo neo4j stop
    sudo neo4j start
    echo "neo4j started"
    echo "neo4j status"
    sudo neo4j status
    echo "dbms.security.auth_enabled=false" | sudo tee -a /etc/neo4j/neo4j.conf
  8. vlado revised this gist Aug 1, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions install_neo4j_on_semaphore_ci.sh
    Original file line number Diff line number Diff line change
    @@ -19,4 +19,6 @@ echo "neo4j started"
    echo "neo4j status"
    sudo neo4j status
    echo "dbms.security.auth_enabled=false" | sudo tee -a /etc/neo4j/neo4j.conf
    sudo neo4j status
    echo "Changing password"
    curl -H "Content-Type: application/json" -X POST -d '{"password":"secret"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password
  9. vlado revised this gist Aug 1, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_neo4j_on_semaphore_ci.sh
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,6 @@ sudo mv /tmp/neo4j.list /etc/apt/sources.list.d
    sudo apt-get update
    sudo apt-get install neo4j -y

    echo "dbms.security.auth_enabled=false" | sudo tee -a /etc/neo4j/neo4j.conf
    echo "neo4j status"
    sudo neo4j status
    echo "starting neo4j"
    @@ -19,4 +18,5 @@ sudo neo4j start
    echo "neo4j started"
    echo "neo4j status"
    sudo neo4j status
    echo "dbms.security.auth_enabled=false" | sudo tee -a /etc/neo4j/neo4j.conf
    curl -H "Content-Type: application/json" -X POST -d '{"password":"secret"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password
  10. vlado revised this gist Aug 1, 2016. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions install_neo4j_on_semaphore_ci.sh
    Original file line number Diff line number Diff line change
    @@ -11,5 +11,12 @@ sudo apt-get update
    sudo apt-get install neo4j -y

    echo "dbms.security.auth_enabled=false" | sudo tee -a /etc/neo4j/neo4j.conf
    echo "neo4j status"
    sudo neo4j status
    echo "starting neo4j"
    sudo neo4j stop
    sudo neo4j start
    echo "neo4j started"
    echo "neo4j status"
    sudo neo4j status
    curl -H "Content-Type: application/json" -X POST -d '{"password":"secret"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password
  11. vlado revised this gist Aug 1, 2016. 1 changed file with 1 addition and 6 deletions.
    7 changes: 1 addition & 6 deletions install_neo4j_on_semaphore_ci.sh
    Original file line number Diff line number Diff line change
    @@ -11,10 +11,5 @@ sudo apt-get update
    sudo apt-get install neo4j -y

    echo "dbms.security.auth_enabled=false" | sudo tee -a /etc/neo4j/neo4j.conf
    sudo neo4j start
    curl -H "Content-Type: application/json" -X POST -d '{"password":"secret"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password
    echo "===================================================================="
    echo "Following commands should be used with sudo"
    neo4j
    echo "===================================================================="
    java -version
    echo "===================================================================="
  12. vlado created this gist Aug 1, 2016.
    20 changes: 20 additions & 0 deletions install_neo4j_on_semaphore_ci.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #! /usr/bin/env bash
    set -e

    source /opt/change-java-version.sh
    change-java-version 8

    wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add -
    echo 'deb http://debian.neo4j.org/repo stable/' >/tmp/neo4j.list
    sudo mv /tmp/neo4j.list /etc/apt/sources.list.d
    sudo apt-get update
    sudo apt-get install neo4j -y

    echo "dbms.security.auth_enabled=false" | sudo tee -a /etc/neo4j/neo4j.conf
    curl -H "Content-Type: application/json" -X POST -d '{"password":"secret"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password
    echo "===================================================================="
    echo "Following commands should be used with sudo"
    neo4j
    echo "===================================================================="
    java -version
    echo "===================================================================="