Created
March 19, 2021 10:48
-
-
Save adocampo/98a4df3e97b21a67daafda2cc9fcea6e to your computer and use it in GitHub Desktop.
RocketChat upgrade without "Call Already Ended" check
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
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