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
2017-07-18 13:03:45 +02:00

26 lines
691 B
Bash

#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
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