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:
parent
9fea11f7c6
commit
fc7b3eb3d9
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue