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

Fixes final_path creation

This commit is contained in:
Selamanse 2017-07-18 14:51:10 +02:00
parent f7aefb2b2f
commit 9c4933ab71

View file

@ -49,6 +49,11 @@ sudo apt-get install -y mongodb-org gzip curl graphicsmagick npm
sudo npm install -g n sudo npm install -g n
sudo n $NODE_VERSION sudo n $NODE_VERSION
# Create destination
final_path=/var/www/rocketchat
ynh_app_setting_set $app final_path $final_path
sudo mkdir -p $final_path
sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf* sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf*
sed -i "s@CHANGEMETOROOTURL@$domain/@g" ../conf/Rocketchat.service sed -i "s@CHANGEMETOROOTURL@$domain/@g" ../conf/Rocketchat.service
@ -56,11 +61,6 @@ sudo cp ../conf/nginx.conf-nosub /etc/nginx/conf.d/$domain.d/rocketchat.conf
pkgdir=$(pwd) pkgdir=$(pwd)
# Copy files to the right place
final_path=/var/www/rocketchat
ynh_app_setting_set $app final_path $final_path
sudo mkdir -p $final_path
# download and extract rocketchat # download and extract rocketchat
cd /tmp && curl -sO https://rocket.chat/releases/$ROCKETCHAT_VERSION/download 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 && gunzip -c /tmp/rocket.chat-$ROCKETCHAT_VERSION.gtar | tar xvf -