Skip to content

Instantly share code, notes, and snippets.

@adocampo
Created March 19, 2021 10:48
Show Gist options
  • Save adocampo/98a4df3e97b21a67daafda2cc9fcea6e to your computer and use it in GitHub Desktop.
Save adocampo/98a4df3e97b21a67daafda2cc9fcea6e to your computer and use it in GitHub Desktop.
RocketChat upgrade without "Call Already Ended" check
curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
tar -xzf /tmp/rocket.chat.tgz -C /tmp
sed -r --in-place=.bak -e 's/;[a-z>]+(\?[^;]+"Call Already Ended")/;1\1/' /tmp/bundle/programs/web.browser/*.js
cd /tmp/bundle/programs/server && npm install
# there is time to look at warnings from npm and solving if neccesary
systemctl stop rocketchat
rm -rf /opt/Rocket.Chat
mv /tmp/bundle /opt/Rocket.Chat
chown -R rocketchat:rocketchat /opt/Rocket.Chat
systemctl start rocketchat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment