1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/haste_ynh.git synced 2024-09-03 20:36:28 +02:00

Fix overwritten /home/max/google-cloud-sdk/bin:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/sbin:/home/max/bin

This commit is contained in:
mbugeia 2016-10-26 00:05:54 +02:00
parent 9fea11f7c6
commit fc7b3eb3d9

View file

@ -78,11 +78,11 @@ pre_inst_haste() {
# usage: install_haste DESTDIR # usage: install_haste DESTDIR
install_haste() { install_haste() {
local DOMAIN=$1 local DOMAIN=$1
local PATH=$2 local YNH_PATH=$2
local IS_PUBLIC=$3 local IS_PUBLIC=$3
check_or_install_npm check_or_install_npm
pre_inst_haste pre_inst_haste none
# install haste # install haste
current_dir=$(pwd) current_dir=$(pwd)
@ -98,7 +98,7 @@ install_haste() {
sudo sed -i "s@YNH_DATA_PATH@$DATA_PATH@g" "$DESTDIR"/config.js sudo sed -i "s@YNH_DATA_PATH@$DATA_PATH@g" "$DESTDIR"/config.js
# Modify Nginx configuration file and copy it to Nginx conf directory # Modify Nginx configuration file and copy it to Nginx conf directory
sed -i "s@PATHTOCHANGE@${path%/}@g" ../conf/nginx.conf sed -i "s@PATHTOCHANGE@${YNH_PATH%/}@g" ../conf/nginx.conf
if [ "$path" = "/" ] if [ "$path" = "/" ]
then then
sed -i "s@COMMENT_IF_ROOT@#@g" ../conf/nginx.conf sed -i "s@COMMENT_IF_ROOT@#@g" ../conf/nginx.conf