1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00
rocketchat_ynh/scripts/upgrade
Selamanse cdb11b1723 Updates to rocket.chat 0.57.2
Adds minor improvements
Updates to rocket.chat 0.57.2
Adds ci routine
2017-07-18 11:48:53 +02:00

16 lines
441 B
Bash

#!/bin/bash
ROCKETCHAT_VERSION=0.57.2
NODE_VERSION=4.7.1
sudo systemctl stop Rocketchat.service
sudo m -rf /var/www/rocketchat/*
sudo n $NODE_VERSION
# download and extract rocketchat
cd /tmp && curl -sO https://rocket.chat/releases/$ROCKETCHAT_VERSION/download
cd $final_path && gunzip -c /tmp/rocket.chat-$ROCKETCHAT_VERSION.gtar | tar xvf -
cd $final_path && rm -r PaxHeader && mv bundle/** .
sudo systemctl start Rocketchat.service