Skip to content

Instantly share code, notes, and snippets.

@JustinTimperio
Last active May 30, 2021 15:04
Show Gist options
  • Save JustinTimperio/d631bf10ece2a6cded9404f1f98b1a10 to your computer and use it in GitHub Desktop.
Save JustinTimperio/d631bf10ece2a6cded9404f1f98b1a10 to your computer and use it in GitHub Desktop.

Revisions

  1. JustinTimperio revised this gist May 30, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Update_RocketChat.sh
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,7 @@ curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
    tar -xzf /tmp/rocket.chat.tgz -C /tmp
    cd /tmp/bundle/programs/server
    npm install
    npm audit fix

    sudo mv /tmp/bundle /opt/Rocket.Chat
    sudo chown -R rocketchat:rocketchat /opt/Rocket.Chat
  2. JustinTimperio created this gist Jan 15, 2021.
    13 changes: 13 additions & 0 deletions Update_RocketChat.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    #!/usr/bin/env bash

    sudo systemctl stop rocketchat
    sudo rm -rf /opt/Rocket.Chat

    curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
    tar -xzf /tmp/rocket.chat.tgz -C /tmp
    cd /tmp/bundle/programs/server
    npm install

    sudo mv /tmp/bundle /opt/Rocket.Chat
    sudo chown -R rocketchat:rocketchat /opt/Rocket.Chat
    sudo systemctl start rocketchat