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:
parent
6b15658dc6
commit
95033480b1
1 changed files with 4 additions and 3 deletions
|
@ -33,7 +33,7 @@ NODE_VERSION=4.7.1
|
||||||
workdir=$(pwd)
|
workdir=$(pwd)
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
sudo yunohost app checkurl $domain -a rocketchat
|
sudo yunohost app checkurl $domain -a $app
|
||||||
if [[ ! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
ynh_die
|
ynh_die
|
||||||
fi
|
fi
|
||||||
|
@ -42,7 +42,7 @@ fi
|
||||||
ynh_app_setting_set $app is_public $is_public
|
ynh_app_setting_set $app is_public $is_public
|
||||||
|
|
||||||
#Install dependencies
|
#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
|
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 update
|
||||||
sudo apt-get install -y mongodb-org gzip curl graphicsmagick npm
|
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"
|
sudo cp ../conf/nginx.conf "$nginx_conf"
|
||||||
|
|
||||||
# download and extract rocketchat
|
# 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 tar -xzf $final_path/rocket.chat-$ROCKETCHAT_VERSION.gtar -C $final_path
|
||||||
sudo ls -lah $final_path
|
sudo ls -lah $final_path
|
||||||
sudo mv $final_path/bundle/** $final_path
|
sudo mv $final_path/bundle/** $final_path
|
||||||
|
|
Loading…
Add table
Reference in a new issue