Atualização #29782
demetriocp
started this conversation in
General
Atualização
#29782
Replies: 1 comment
-
Please take care to replace some variables inside. sudo systemctl stop rocketchat
echo "remove npm cache..."
rm -rf /usr/local/lib/node_modules/npm/
echo "remove current bundle folder if have"
sudo rm -rf bundle
echo "remove current Rocket.Chat"
sudo rm -rf /opt/Rocket.Chat
echo "Download latestcode repository"
l=$(date)
#name=${l//[ :]/_}
name=${l//[ :]/_}_rocket.chat.tgz
#curl -L https://releases.rocket.chat/latest/download -o ${name}_rocket.chat.tgz
q=$(curl https://releases.rocket.chat/latest/download)
q=$(echo $q|grep -Eo '([0-9.]+)\.tgz'|sed 's/.tgz//')
echo "Get version: $q"
#exit
curl -L https://releases.rocket.chat/latest/download -o ${name}
echo "uncompress files"
#name=rocket.chat-5.4.5.tgz
#name=rocket.chat-4.1.2.tgz
#tar -xzf rocket.chat.tgz -C .
tar -vxzf $name -C .
echo "compile codes"
cd bundle/programs/server && npm install
cd ../../..
echo "move bundle to /opt"
mv bundle /opt/Rocket.Chat
echo "change own relationship to rocket"
sudo chown -R rocketchat:rocketchat /opt/Rocket.Chat
echo "start rocketchat"
sudo systemctl start rocketchat (Edit: it seems vim copy from termux cause some noise, repair it here) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bom dia.
Alguém Poderia me ajudar a Atualizar o Rocket para Versão mais recente?
Beta Was this translation helpful? Give feedback.
All reactions