2016-04-29 17:52:21 +02:00
|
|
|
#!/bin/bash
|
2017-07-18 13:16:23 +02:00
|
|
|
set -eu
|
2017-07-18 13:03:45 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
2017-07-18 11:48:53 +02:00
|
|
|
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/*
|
2017-07-18 11:48:53 +02:00
|
|
|
|
|
|
|
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
|