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

27 lines
681 B
Text
Raw Normal View History

2016-04-29 17:52:21 +02:00
#!/bin/bash
set -eu
2017-07-18 13:03:45 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source /usr/share/yunohost/helpers
ROCKETCHAT_VERSION=0.57.2
NODE_VERSION=4.7.1
2016-04-29 17:52:21 +02:00
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/** .
2016-04-29 17:52:21 +02:00
sudo systemctl start Rocketchat.service