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

Improves install script

This commit is contained in:
Selamanse 2017-07-19 11:20:02 +02:00
parent 6b15658dc6
commit 95033480b1

View file

@ -33,7 +33,7 @@ NODE_VERSION=4.7.1
workdir=$(pwd)
# Check domain/path availability
sudo yunohost app checkurl $domain -a rocketchat
sudo yunohost app checkurl $domain -a $app
if [[ ! $? -eq 0 ]]; then
ynh_die
fi
@ -42,7 +42,7 @@ fi
ynh_app_setting_set $app is_public $is_public
#Install dependencies
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 >/dev/null
echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org gzip curl graphicsmagick npm
@ -74,7 +74,8 @@ sed -i "s@#DESTDIR#@${final_path}@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf "$nginx_conf"
# download and extract rocketchat
sudo curl -L -o $final_path/rocket.chat-$ROCKETCHAT_VERSION.gtar "https://rocket.chat/releases/${ROCKETCHAT_VERSION}/download"
echo "Downloading rocket.chat-$ROCKETCHAT_VERSION.gtar from https://rocket.chat/releases/${ROCKETCHAT_VERSION}/download."
sudo curl -s -L -o $final_path/rocket.chat-$ROCKETCHAT_VERSION.gtar "https://rocket.chat/releases/${ROCKETCHAT_VERSION}/download"
sudo tar -xzf $final_path/rocket.chat-$ROCKETCHAT_VERSION.gtar -C $final_path
sudo ls -lah $final_path
sudo mv $final_path/bundle/** $final_path