1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00

Update upgrade

This commit is contained in:
mod242 2019-04-08 15:08:42 +02:00 committed by GitHub
parent dfc1bb75f5
commit f19691685f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,12 @@ serviceuser=$(ynh_app_setting_get $app serviceuser)
path=$(ynh_app_setting_get $app path)
port=$(ynh_app_setting_get $app port)
# stop rocketchat and remove program dir
sudo systemctl stop rocketchat
sudo rm -rf $final_path
sudo mkdir -p $final_path
# download and extract rocketchat
echo "Downloading rocket.chat-$ROCKETCHAT_VERSION.gtar from ${ROCKETCHAT_DOWNLOAD_URI}."
sudo curl -s -L -o $final_path/rocket.chat-$ROCKETCHAT_VERSION.gtar "${ROCKETCHAT_DOWNLOAD_URI}"
@ -26,10 +32,6 @@ if [[ ! "$SHA_DOWNLOAD" == "$ROCKETCHAT_SHASUM" ]]; then
ynh_die "The sha256sum does not match the configured one"
fi
sudo systemctl stop rocketchat
sudo rm -rf $final_path
sudo mkdir -p $final_path
# update to latest required node setup
installnode