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.
#!/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
npm audit fix
sudo mv /tmp/bundle /opt/Rocket.Chat
sudo chown -R rocketchat:rocketchat /opt/Rocket.Chat
sudo systemctl start rocketchat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment