From fc7b3eb3d9da9d3920cd9c120bfd5f91db0ad867 Mon Sep 17 00:00:00 2001 From: mbugeia Date: Wed, 26 Oct 2016 00:05:54 +0200 Subject: [PATCH] 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 --- scripts/_common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 97fadab..cca262f 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -78,11 +78,11 @@ pre_inst_haste() { # usage: install_haste DESTDIR install_haste() { local DOMAIN=$1 - local PATH=$2 + local YNH_PATH=$2 local IS_PUBLIC=$3 check_or_install_npm - pre_inst_haste + pre_inst_haste none # install haste current_dir=$(pwd) @@ -98,7 +98,7 @@ install_haste() { sudo sed -i "s@YNH_DATA_PATH@$DATA_PATH@g" "$DESTDIR"/config.js # 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" = "/" ] then sed -i "s@COMMENT_IF_ROOT@#@g" ../conf/nginx.conf