Skip to content

Instantly share code, notes, and snippets.

@adocampo
Created October 1, 2019 14:54
Show Gist options
  • Save adocampo/17c856f0873ef7e21fcbe4e81ac3fb14 to your computer and use it in GitHub Desktop.
Save adocampo/17c856f0873ef7e21fcbe4e81ac3fb14 to your computer and use it in GitHub Desktop.
Little script to update from sources a manually installed RocketChat on a systemd system.
#!/bin/bash
curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
tar -xzf /tmp/rocket.chat.tgz -C /tmp
systemctl stop rocketchat.service
mv /opt/Rocket.Chat/ /opt/Rocket.Chat_bak
cd /tmp/bundle/programs/server && npm install
npm i -g npm
sudo mv /tmp/bundle /opt/Rocket.Chat
systemctl start rocketchat.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment