Created
October 1, 2019 14:54
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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